fox for set showable type and set selectable types

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/widgets/workspace-explorer@169585 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Massimiliano Assante 2018-07-02 09:34:47 +00:00
parent 86b44380ab
commit 9a2a1258b4
2 changed files with 2 additions and 2 deletions

View File

@ -131,7 +131,7 @@ public class WorkspaceExplorerSelectDialog extends Modal implements HasWorskpace
public WorkspaceExplorerSelectDialog(String captionTxt, boolean showOnlyFolders) {
controller = new WorkspaceExplorerController(WorkspaceExplorerConstants.HEIGHT_EXPLORER_PANEL);
if(showOnlyFolders){
ItemType[] itemsType = new ItemType[1];
ItemType[] itemsType = new ItemType[4];
itemsType[0] = ItemType.FOLDER;
itemsType[1] = ItemType.PRIVATE_FOLDER;
itemsType[2] = ItemType.SHARED_FOLDER;

View File

@ -130,7 +130,7 @@ public class WorkspaceExplorerSelectPanel extends ScrollPanel implements HasWors
public WorkspaceExplorerSelectPanel(String captionTxt, boolean showOnlyFolders) {
controller = new WorkspaceExplorerController(WorkspaceExplorerConstants.AUTO);
if(showOnlyFolders){
ItemType[] itemsType = new ItemType[1];
ItemType[] itemsType = new ItemType[4];
itemsType[0] = ItemType.FOLDER;
itemsType[1] = ItemType.PRIVATE_FOLDER;
itemsType[2] = ItemType.SHARED_FOLDER;