Minor updated

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-portlet@87234 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2013-12-20 10:34:15 +00:00
parent e98d1375f5
commit 7726ff52fb
2 changed files with 18 additions and 11 deletions

View File

@ -137,12 +137,18 @@ public class TabularDataController {
}
protected void resumeUIState() {
if (uiState == UIStateType.TR_OPEN) {
UIStateEvent uiStateEvent = new UIStateEvent(UIStateType.TR_OPEN);
uiStateEvent.setTrId(trId);
eventBus.fireEvent(uiStateEvent);
} else {
eventBus.fireEvent(new UIStateEvent(UIStateType.TR_CLOSE));
try {
if (uiState == UIStateType.TR_OPEN) {
UIStateEvent uiStateEvent = new UIStateEvent(
UIStateType.TR_OPEN);
uiStateEvent.setTrId(trId);
eventBus.fireEvent(uiStateEvent);
} else {
eventBus.fireEvent(new UIStateEvent(UIStateType.TR_CLOSE));
}
} catch (Exception e) {
Log.debug("Resume :" + e.getLocalizedMessage());
}
}
@ -441,10 +447,11 @@ public class TabularDataController {
tdTaskController = TdTaskController.getInstance();
TdTaskController.bindCommonBus(eventBus);
tdTaskMainWindow = tdTaskController.getWindowTaskMonitor();
tdTaskMainWindow.setPopupPosition( (Window.getClientWidth()/2)-200, (Window.getClientHeight()/2)-300);
tdTaskMainWindow = tdTaskController.getWindowTaskMonitor();
tdTaskMainWindow.setPopupPosition((Window.getClientWidth() / 2) - 200,
(Window.getClientHeight() / 2) - 300);
tdTaskMainWindow.show();
}

View File

@ -116,7 +116,7 @@ public class FileToolBar {
dataLayout.getFlexCellFormatter().setRowSpan(0, 1, 2);
shareButton = new TextButton("Share",
TabularDataResources.INSTANCE.close32());
TabularDataResources.INSTANCE.share32());
shareButton.disable();
shareButton.setId("shareButton");
shareButton.setScale(ButtonScale.LARGE);