diff --git a/src/main/java/org/gcube/portlets/widgets/wsexplorer/client/explore/WorkspaceResourcesExplorerPanel.java b/src/main/java/org/gcube/portlets/widgets/wsexplorer/client/explore/WorkspaceResourcesExplorerPanel.java index 07d3e50..3fd0f74 100644 --- a/src/main/java/org/gcube/portlets/widgets/wsexplorer/client/explore/WorkspaceResourcesExplorerPanel.java +++ b/src/main/java/org/gcube/portlets/widgets/wsexplorer/client/explore/WorkspaceResourcesExplorerPanel.java @@ -44,7 +44,8 @@ import com.google.gwt.user.client.ui.VerticalPanel; */ public class WorkspaceResourcesExplorerPanel extends DockPanel implements HasWorskpaceExplorerSelectNotificationListener{ - private WorkspaceResourcesExplorerPanel INSTANCE = this; + public final HandlerManager eventBus = new HandlerManager(null); + private Breadcrumbs breadcrumbs = new Breadcrumbs(eventBus); private boolean isSelect = false; private String captionTxt; private Alert alertConfirm; @@ -55,8 +56,7 @@ public class WorkspaceResourcesExplorerPanel extends DockPanel implements HasWor private WorkspaceExplorer wsExplorer; private ScrollPanel centerScrollable = new ScrollPanel(); private ScrollPanel southPanel = new ScrollPanel(); - public final HandlerManager eventBus = new HandlerManager(null); - private Breadcrumbs breadcrumbs = new Breadcrumbs(eventBus); + private String folderId; private String folderName; diff --git a/src/main/java/org/gcube/portlets/widgets/wsexplorer/client/view/Breadcrumbs.java b/src/main/java/org/gcube/portlets/widgets/wsexplorer/client/view/Breadcrumbs.java index 7c03df5..2e35861 100644 --- a/src/main/java/org/gcube/portlets/widgets/wsexplorer/client/view/Breadcrumbs.java +++ b/src/main/java/org/gcube/portlets/widgets/wsexplorer/client/view/Breadcrumbs.java @@ -67,6 +67,7 @@ public class Breadcrumbs extends Composite { resetBreadcrumbs(); if (parents != null && parents.size() > 0) { for (Item parent : parents) { + GWT.log("parent is: "+parent); addNavigationLink(parent); hashListItems.put(parent.getId(), parent); } diff --git a/src/main/java/org/gcube/portlets/widgets/wsexplorer/server/WorkspaceExplorerServiceImpl.java b/src/main/java/org/gcube/portlets/widgets/wsexplorer/server/WorkspaceExplorerServiceImpl.java index 4bd30ac..92767f7 100644 --- a/src/main/java/org/gcube/portlets/widgets/wsexplorer/server/WorkspaceExplorerServiceImpl.java +++ b/src/main/java/org/gcube/portlets/widgets/wsexplorer/server/WorkspaceExplorerServiceImpl.java @@ -403,8 +403,6 @@ public class WorkspaceExplorerServiceImpl extends RemoteServiceServlet implement } - - //CONVERTING PATH _log.trace("converting path from second-last.."); for (int i = parents.size()-2; i >= 0; i--) {