Changed istance point for EventBus and Breadcrumbs

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/widgets/workspace-explorer@121727 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2015-12-09 14:06:08 +00:00
parent 6d04e0aea7
commit acc6a8ae4c
3 changed files with 4 additions and 5 deletions

View File

@ -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;

View File

@ -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);
}

View File

@ -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--) {