ref 13226:StorageHub - Update workspace-sharing-widget to SH

https://support.d4science.org/issues/13226

Updated to StorageHub

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@177231 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2019-02-22 11:24:33 +00:00
parent 53b6d61b8c
commit 25b3e96391
1 changed files with 27 additions and 36 deletions

View File

@ -813,6 +813,14 @@ public class AppControllerExplorer implements EventHandler, TreeAppControllerInt
@Override
public void onSuccess(Boolean result) {
if (result) {
// REFRESH PARENT FOLDER
Timer t = new Timer() {
@Override
public void run() {
GWT.log("Runing refresh after wait: " + waitTiming); // TODO
FileModel parentToRefresh = null;
if (isNewFolder)
@ -824,34 +832,17 @@ public class AppControllerExplorer implements EventHandler, TreeAppControllerInt
+ parentToRefresh.getName() + " get id: "
+ parentToRefresh.getIdentifier());
// REFRESH PARENT FOLDER
/*
* Timer t = new Timer() {
*
* @Override public void
* run() { GWT.
* log("Runing refresh after wait: "
* +waitTiming); //TODO
* UPDATED ID
* RefreshFolderEvent
* refEvent = new
* RefreshFolderEvent(
* parentToRefresh, true,
* true, false); refEvent.
* setForceReloadBreadCrumb(
* true);
* eventBus.fireEvent(
* refEvent);
* explorerPanel.unmask(); }
* };
*/
// t.schedule(waitTiming);
// TODO UPDATED ID
// UPDATED ID
RefreshFolderEvent refEvent = new RefreshFolderEvent(
parentToRefresh, true, true, false);
refEvent.setForceReloadBreadCrumb(true);
eventBus.fireEvent(refEvent);
explorerPanel.unmask();
}
};
t.schedule(waitTiming);
}
explorerPanel.unmask();
}