Added new constructor
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/widgets/workspace-explorer@171985 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
3a6a32f88a
commit
8c6e61254f
|
@ -136,7 +136,7 @@ public class WorkspaceExplorerSelectDialog extends Modal implements HasWorskpace
|
||||||
itemsType[1] = ItemType.PRIVATE_FOLDER;
|
itemsType[1] = ItemType.PRIVATE_FOLDER;
|
||||||
itemsType[2] = ItemType.SHARED_FOLDER;
|
itemsType[2] = ItemType.SHARED_FOLDER;
|
||||||
itemsType[3] = ItemType.VRE_FOLDER;
|
itemsType[3] = ItemType.VRE_FOLDER;
|
||||||
|
|
||||||
setSelectableTypes(itemsType);
|
setSelectableTypes(itemsType);
|
||||||
setShowableTypes(itemsType);
|
setShowableTypes(itemsType);
|
||||||
}
|
}
|
||||||
|
@ -144,6 +144,29 @@ public class WorkspaceExplorerSelectDialog extends Modal implements HasWorskpace
|
||||||
loadExplorer(captionTxt, null);
|
loadExplorer(captionTxt, 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
|
||||||
|
*/
|
||||||
|
public WorkspaceExplorerSelectDialog(String captionTxt, boolean showOnlyFolders, String baseFolderId) {
|
||||||
|
controller = new WorkspaceExplorerController(WorkspaceExplorerConstants.HEIGHT_EXPLORER_PANEL);
|
||||||
|
if(showOnlyFolders){
|
||||||
|
ItemType[] itemsType = new ItemType[4];
|
||||||
|
itemsType[0] = ItemType.FOLDER;
|
||||||
|
itemsType[1] = ItemType.PRIVATE_FOLDER;
|
||||||
|
itemsType[2] = ItemType.SHARED_FOLDER;
|
||||||
|
itemsType[3] = ItemType.VRE_FOLDER;
|
||||||
|
|
||||||
|
setSelectableTypes(itemsType);
|
||||||
|
setShowableTypes(itemsType);
|
||||||
|
}
|
||||||
|
|
||||||
|
loadExplorer(captionTxt, baseFolderId);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Instantiates a new workspace explorer select dialog.
|
* Instantiates a new workspace explorer select dialog.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue