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:
parent
edccf1df62
commit
622e28a17d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue