diff --git a/src/main/java/org/gcube/portlets/widgets/wsexplorer/client/select/WorkspaceExplorerSelectDialog.java b/src/main/java/org/gcube/portlets/widgets/wsexplorer/client/select/WorkspaceExplorerSelectDialog.java index 7e92340..dd0e924 100644 --- a/src/main/java/org/gcube/portlets/widgets/wsexplorer/client/select/WorkspaceExplorerSelectDialog.java +++ b/src/main/java/org/gcube/portlets/widgets/wsexplorer/client/select/WorkspaceExplorerSelectDialog.java @@ -144,6 +144,7 @@ public class WorkspaceExplorerSelectDialog extends Modal implements HasWorskpace loadExplorer(captionTxt, null, null); } + /** * Instantiates a new workspace explorer select dialog. * @@ -151,6 +152,19 @@ public class WorkspaceExplorerSelectDialog extends Modal implements HasWorskpace * @param showOnlyFolders the show only folders * @param baseFolderId the base folder id */ + public WorkspaceExplorerSelectDialog(String captionTxt, boolean showOnlyFolders, String baseFolderId) { + this(captionTxt, showOnlyFolders, baseFolderId, null); + } + + + /** + * Instantiates a new workspace explorer select dialog. + * + * @param captionTxt the caption txt + * @param showOnlyFolders the show only folders + * @param baseFolderId the base folder id + * @param baseFolderName the base folder name + */ public WorkspaceExplorerSelectDialog(String captionTxt, boolean showOnlyFolders, String baseFolderId, String baseFolderName) { controller = new WorkspaceExplorerController(WorkspaceExplorerConstants.HEIGHT_EXPLORER_PANEL); if(showOnlyFolders){ @@ -214,13 +228,14 @@ public class WorkspaceExplorerSelectDialog extends Modal implements HasWorskpace // } /** - * Load explorer. - * If folder id is null or empty the explorer loads the root element - * Otherwise, it loads the folder id - * - * @param captionTxt the caption txt - * @param folderId the folder id - */ + * Load explorer. + * If folder id is null or empty the explorer loads the root element + * Otherwise, it loads the folder id + * + * @param captionTxt the caption txt + * @param folderId the folder id + * @param baseFolderName the base folder name + */ private void loadExplorer(String captionTxt, String folderId, String baseFolderName){ if(folderId==null || folderId.isEmpty())