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:
parent
53b6d61b8c
commit
25b3e96391
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue