256: Workspace explorer

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

Updated constructors

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/widgets/workspace-explorer@117093 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2015-07-08 14:39:53 +00:00
parent 473ea75f3f
commit 1873b0cdd7
1 changed files with 20 additions and 0 deletions

View File

@ -79,6 +79,26 @@ public class WorkspaceExplorerSaveDialog extends Modal implements HasWorskpaceEx
WorkspaceExplorerController.eventBus.fireEvent(new LoadRootEvent());
initDialog(captionTxt, fileName);
}
/**
* Instantiates a new workspace explorer save dialog.
*
* @param fileName the file name
* @param showOnlyFolders the show only folders
*/
public WorkspaceExplorerSaveDialog(String fileName, boolean showOnlyFolders) {
if (showOnlyFolders) {
ItemType[] itemsType = new ItemType[2];
itemsType[0] = ItemType.ROOT;
itemsType[1] = ItemType.FOLDER;
setSelectableTypes(itemsType);
setShowableTypes(itemsType);
}
WorkspaceExplorerController.eventBus.fireEvent(new LoadRootEvent());
initDialog(WorkspaceExplorerConstants.WORKSPACE_EXPLORER_SAVE_AS_CAPTION, fileName);
}
/**