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");