- else if(historyToken.equals("Files")){
- setHistory("Files", treeItem);
- History.newItem("Files");
- inner.selectTab(0);
- }
- else{
- PopupTree tree = GSS.get().getFolders().getPopupTree();
- String newHistoryToken = URL.decode(historyToken);
- System.out.println(map.keySet());
- SelectionEvent.fire(tree, (TreeItem) getHistoryItem(newHistoryToken));
- }
- } catch (IndexOutOfBoundsException e) {
- inner.selectTab(0);
- }
- }
- });
-
+ else if(historyToken.equals("Files")|| historyToken.length()==0)
+ inner.selectTab(0);
+ else {
+ PopupTree popupTree = GSS.get().getFolders().getPopupTree();
+ TreeItem treeObj = GSS.get().getFolders().getPopupTree().getTreeItem(historyToken);
+ SelectionEvent.fire(popupTree, treeObj);
+ }
+ } catch (IndexOutOfBoundsException e) {
+ inner.selectTab(0);
+ }
+ }
+ });