Revision bddcde7b
b/src/gr/ebs/gss/client/PopupTree.java | ||
---|---|---|
240 | 240 |
public TreeItem getTreeItem (String historyToken){ |
241 | 241 |
// String historyTokenOriginal = historyToken.replace("+", " "); |
242 | 242 |
String path = GSS.get().getApiPath() + GSS.get().getCurrentUserResource().getUsername()+ "/"; |
243 |
|
|
243 |
String rootText = DisplayHelper.trim(GSS.get().getFolders().getRootItem().getText()); |
|
244 |
String uriToGet = "Files/files/" + rootText; |
|
244 | 245 |
Iterator<TreeItem> it = GSS.get().getFolders().getPopupTree().treeItemIterator() ; |
245 | 246 |
while(it.hasNext()){ |
246 | 247 |
String constructedUri = ""; |
... | ... | |
268 | 269 |
if(constructedUri.equals(historyToken)) |
269 | 270 |
return treeItem; |
270 | 271 |
} |
271 |
return expandHiddenItems("Files/trash/");
|
|
272 |
return expandHiddenItems(uriToGet);
|
|
272 | 273 |
|
273 | 274 |
} |
274 | 275 |
|
275 | 276 |
|
276 | 277 |
public TreeItem expandHiddenItems(String tokenInput){ |
278 |
//TODO |
|
277 | 279 |
// this method handles objects that are not constructed during loading the application |
278 |
// and there's a need to seek them inside some non-expanded folder |
|
280 |
// and when there's a need to seek them inside some non-expanded folder
|
|
279 | 281 |
// This method is not implemented yet and in case of a non-constructed object |
280 |
// returns the trash folder
|
|
282 |
// returns the home/root folder
|
|
281 | 283 |
// treeItem.getState() method returns always false so the OpenEvent.fire() method |
282 | 284 |
// fails to expand the parent folder in the UI |
283 | 285 |
|
b/src/gr/ebs/gss/client/rest/resource/FolderResource.java | ||
---|---|---|
513 | 513 |
filesExpanded = newFilesExpanded; |
514 | 514 |
} |
515 | 515 |
/** |
516 |
* construct the partial path of the selected TreeItem
|
|
516 |
* this method constructs the partial path of a given TreeItem using it's text
|
|
517 | 517 |
* |
518 | 518 |
* @param selectedItem the selectedItem to check |
519 | 519 |
*/ |
Also available in: Unified diff