fixed bug on calculated GetPath

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/widgets/workspace-explorer@122950 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2016-02-09 10:31:14 +00:00
parent 8f3d9c128b
commit e04f66ff4d
2 changed files with 4 additions and 2 deletions

View File

@ -73,6 +73,7 @@ public class WorkspaceExplorer implements ShowableTypes, SelectableTypes{
setSelectableTypes(selectableTypes);
itTables = new ItemsTable(eventBus, true, fields);
explorerPanel = new ScrollPanel();
// explorerPanel.add(itTables.getCellTable());
}

View File

@ -127,11 +127,12 @@ public class ItemBuilder {
//TODO A PATCH TO AVOID A SLOW GETPATH
workspaceItemPath = workspaceItem.getPath();
for (WorkspaceItem child: workspaceItem.getChildren()){
String itemPath = workspaceItemPath;
if(child.isFolder())
workspaceItemPath+="/"+child.getName();
itemPath+="/"+child.getName();
// _log.trace("\nConverting child item: "+child.getName());
Item itemChild = getItem(item, child, workspaceItemPath, showableTypes, filterCriteria, false);
Item itemChild = getItem(item, child, itemPath, showableTypes, filterCriteria, false);
// _log.trace("Item: "+child.getName() +" converted!!!");
if (itemChild!=null){
item.addChild(itemChild);