|
|
|
@ -209,7 +209,7 @@ public class AsyncTreePanel extends LayoutContainer {
|
|
|
|
|
if(model.isPublic()) //IS PLUBIC
|
|
|
|
|
return Resources.getIconFolderPublic();
|
|
|
|
|
else
|
|
|
|
|
return Resources.getIconFolder();
|
|
|
|
|
return Resources.getIconSharedFolder(); //IS CHILDREN OF ROOT SHARED FOLDER
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -347,42 +347,6 @@ public class AsyncTreePanel extends LayoutContainer {
|
|
|
|
|
loadRootInStore(result, selectRoot);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// if(this.scopeId !=null){
|
|
|
|
|
// //Load Root with specific scope id
|
|
|
|
|
// AppControllerExplorer.rpcWorkspaceService.getRootForTree(scopeId, new AsyncCallback<FolderModel>() {
|
|
|
|
|
//
|
|
|
|
|
// @Override
|
|
|
|
|
// public void onFailure(Throwable caught) {
|
|
|
|
|
// new MessageBoxAlert("Error", ConstantsExplorer.SERVER_ERROR + " getting root item. " +ConstantsExplorer.TRY_AGAIN, null);
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// @Override
|
|
|
|
|
// public void onSuccess(FolderModel result) {
|
|
|
|
|
// loadRootInStore(result, selectRoot);
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// else{
|
|
|
|
|
// //Load Root without filtering on scope id
|
|
|
|
|
// AppControllerExplorer.rpcWorkspaceService.getRootForTree(new AsyncCallback<FolderModel>() {
|
|
|
|
|
//
|
|
|
|
|
// @Override
|
|
|
|
|
// public void onFailure(Throwable caught) {
|
|
|
|
|
// new MessageBoxAlert("Error", ConstantsExplorer.SERVER_ERROR + " getting root item. " +ConstantsExplorer.TRY_AGAIN, null);
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// @Override
|
|
|
|
|
// public void onSuccess(FolderModel result) {
|
|
|
|
|
// loadRootInStore(result, selectRoot);
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|