Added Open TR with parameter on url
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-portlet@113569 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
dea63103e7
commit
c86546ea06
|
@ -339,22 +339,29 @@ public class TabularDataController {
|
||||||
|
|
||||||
//
|
//
|
||||||
public void restoreUISession() {
|
public void restoreUISession() {
|
||||||
TDGWTServiceAsync.INSTANCE.restoreUISession(new AsyncCallback<TRId>() {
|
String value = com.google.gwt.user.client.Window.Location
|
||||||
|
.getParameter("TabularResourceId");
|
||||||
|
TRId startTRId = new TRId(value);
|
||||||
|
|
||||||
public void onFailure(Throwable caught) {
|
TDGWTServiceAsync.INSTANCE.restoreUISession(startTRId,
|
||||||
|
new AsyncCallback<TRId>() {
|
||||||
|
|
||||||
}
|
public void onFailure(Throwable caught) {
|
||||||
|
UtilsGXT3.alert("Error",
|
||||||
public void onSuccess(TRId trId) {
|
caught.getLocalizedMessage());
|
||||||
if (trId != null) {
|
|
||||||
if (trId.getId() != null && !trId.getId().isEmpty()) {
|
|
||||||
openTable(trId);
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
}
|
public void onSuccess(TRId trId) {
|
||||||
|
if (trId != null) {
|
||||||
|
if (trId.getId() != null && !trId.getId().isEmpty()) {
|
||||||
|
openTable(trId);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
});
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1988,8 +1995,6 @@ public class TabularDataController {
|
||||||
UtilsGXT3.alert("Error", "No tabular resource present");
|
UtilsGXT3.alert("Error", "No tabular resource present");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private void openGeometryCreatePoint() {
|
private void openGeometryCreatePoint() {
|
||||||
Log.debug("Request Geometry Create Point Tab");
|
Log.debug("Request Geometry Create Point Tab");
|
||||||
|
@ -2005,7 +2010,6 @@ public class TabularDataController {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private void openDownscaleCSquare() {
|
private void openDownscaleCSquare() {
|
||||||
openDownscaleCSquare(null, null);
|
openDownscaleCSquare(null, null);
|
||||||
}
|
}
|
||||||
|
@ -2024,9 +2028,7 @@ public class TabularDataController {
|
||||||
UtilsGXT3.alert("Error", "No tabular resource present");
|
UtilsGXT3.alert("Error", "No tabular resource present");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private void openBackgroundMonitor() {
|
private void openBackgroundMonitor() {
|
||||||
Log.debug("Request Open Monitor Background Tab");
|
Log.debug("Request Open Monitor Background Tab");
|
||||||
WidgetRequestEvent e = new WidgetRequestEvent(
|
WidgetRequestEvent e = new WidgetRequestEvent(
|
||||||
|
|
|
@ -247,7 +247,7 @@ public class TemplateApplyPanel extends FramedPanel {
|
||||||
v.add(toolBarHead, new VerticalLayoutData(1, -1, new Margins(0)));
|
v.add(toolBarHead, new VerticalLayoutData(1, -1, new Margins(0)));
|
||||||
v.add(grid, new VerticalLayoutData(-1, -1, new Margins(0)));
|
v.add(grid, new VerticalLayoutData(-1, -1, new Margins(0)));
|
||||||
v.add(toolBar, new VerticalLayoutData(1, 25, new Margins(0)));
|
v.add(toolBar, new VerticalLayoutData(1, 25, new Margins(0)));
|
||||||
v.add(flowButton, new VerticalLayoutData(-1, 36,
|
v.add(flowButton, new VerticalLayoutData(1, 36,
|
||||||
new Margins(5, 2, 5, 2)));
|
new Margins(5, 2, 5, 2)));
|
||||||
add(v);
|
add(v);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue