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:
parent
8f3d9c128b
commit
e04f66ff4d
|
@ -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());
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue