From cf9b4bfffcae5fabbe0c3d3fc2b0cca675638e90 Mon Sep 17 00:00:00 2001 From: Francesco Mangiacrapa Date: Tue, 28 Jul 2015 14:52:35 +0000 Subject: [PATCH] 256: Workspace explorer Task-Url: https://support.d4science.org/issues/256 Updated method git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/widgets/workspace-explorer@117527 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../client/select/WorkspaceExplorerSelectPanel.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/org/gcube/portlets/widgets/wsexplorer/client/select/WorkspaceExplorerSelectPanel.java b/src/main/java/org/gcube/portlets/widgets/wsexplorer/client/select/WorkspaceExplorerSelectPanel.java index 8f33e78..e58296a 100644 --- a/src/main/java/org/gcube/portlets/widgets/wsexplorer/client/select/WorkspaceExplorerSelectPanel.java +++ b/src/main/java/org/gcube/portlets/widgets/wsexplorer/client/select/WorkspaceExplorerSelectPanel.java @@ -21,7 +21,6 @@ import com.github.gwtbootstrap.client.ui.constants.AlertType; import com.github.gwtbootstrap.client.ui.constants.ButtonType; import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.event.dom.client.ClickHandler; -import com.google.gwt.user.client.ui.HorizontalPanel; import com.google.gwt.user.client.ui.ScrollPanel; import com.google.gwt.user.client.ui.VerticalPanel; @@ -44,7 +43,6 @@ public class WorkspaceExplorerSelectPanel extends ScrollPanel implements HasWors private WorkspaceExplorerController controller = new WorkspaceExplorerController(); private List listeners = new ArrayList(); private VerticalPanel mainVP = new VerticalPanel(); - private HorizontalPanel footerHP = new HorizontalPanel(); /** * Instantiates a new workspace explorer select panel. @@ -103,14 +101,16 @@ public class WorkspaceExplorerSelectPanel extends ScrollPanel implements HasWors + /** - * Inits the dialog. + * Inits the panel. * - * @param captionTxt the caption txt + * @param captionTxt the caption txt is the tool-tip */ private void initPanel(String captionTxt) { - this.captionTxt = (captionTxt==null || captionTxt.isEmpty())?WorkspaceExplorerConstants.WORKSPACE_EXPLORER_CAPTION:captionTxt; - setTitle(this.captionTxt); + this.captionTxt = captionTxt; + if(this.captionTxt!=null && !this.captionTxt.isEmpty()) + setTitle(this.captionTxt); selectButton = new Button(WorkspaceExplorerConstants.SELECT); selectButton.setType(ButtonType.PRIMARY); setWidth(WorkspaceExplorerConstants.WIDHT_DIALOG+"px");