From 7726ff52fba7abf0b58c1c4691877087f6605379 Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Fri, 20 Dec 2013 10:34:15 +0000 Subject: [PATCH] Minor updated git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-portlet@87234 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../user/td/client/TabularDataController.java | 27 ++++++++++++------- .../user/td/client/ribbon/FileToolBar.java | 2 +- 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/src/main/java/org/gcube/portlets/user/td/client/TabularDataController.java b/src/main/java/org/gcube/portlets/user/td/client/TabularDataController.java index d843d87..7fc3727 100644 --- a/src/main/java/org/gcube/portlets/user/td/client/TabularDataController.java +++ b/src/main/java/org/gcube/portlets/user/td/client/TabularDataController.java @@ -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(); } diff --git a/src/main/java/org/gcube/portlets/user/td/client/ribbon/FileToolBar.java b/src/main/java/org/gcube/portlets/user/td/client/ribbon/FileToolBar.java index bf72e85..1878d74 100644 --- a/src/main/java/org/gcube/portlets/user/td/client/ribbon/FileToolBar.java +++ b/src/main/java/org/gcube/portlets/user/td/client/ribbon/FileToolBar.java @@ -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);