256: Workspace explorer

Task-Url: https://support.d4science.org/issues/256

Refactor
Changed method description

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/widgets/workspace-explorer@117526 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2015-07-28 14:49:10 +00:00
parent edccf1df62
commit 622e28a17d
1 changed files with 5 additions and 5 deletions

View File

@ -49,11 +49,11 @@ public class WorkspaceExplorerSelectPanel extends ScrollPanel implements HasWors
/**
* Instantiates a new workspace explorer select panel.
*
* @param captionTxt the caption txt
* @param captionTxt the tool-tip of the panel
*/
public WorkspaceExplorerSelectPanel(String captionTxt) {
WorkspaceExplorerController.eventBus.fireEvent(new LoadRootEvent());
initDialog(captionTxt);
initPanel(captionTxt);
}
@ -73,7 +73,7 @@ public class WorkspaceExplorerSelectPanel extends ScrollPanel implements HasWors
}
WorkspaceExplorerController.eventBus.fireEvent(new LoadRootEvent());
initDialog(captionTxt);
initPanel(captionTxt);
}
@ -98,7 +98,7 @@ public class WorkspaceExplorerSelectPanel extends ScrollPanel implements HasWors
}
WorkspaceExplorerController.eventBus.fireEvent(new LoadRootEvent());
initDialog(captionTxt);
initPanel(captionTxt);
}
@ -108,7 +108,7 @@ public class WorkspaceExplorerSelectPanel extends ScrollPanel implements HasWors
*
* @param captionTxt the caption txt
*/
private void initDialog(String captionTxt) {
private void initPanel(String captionTxt) {
this.captionTxt = (captionTxt==null || captionTxt.isEmpty())?WorkspaceExplorerConstants.WORKSPACE_EXPLORER_CAPTION:captionTxt;
setTitle(this.captionTxt);
selectButton = new Button(WorkspaceExplorerConstants.SELECT);