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,45 +813,36 @@ public class AppControllerExplorer implements EventHandler, TreeAppControllerInt
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(Boolean result) {
|
public void onSuccess(Boolean result) {
|
||||||
if (result) {
|
if (result) {
|
||||||
FileModel parentToRefresh = null;
|
|
||||||
|
|
||||||
if (isNewFolder)
|
|
||||||
parentToRefresh = parentModel;
|
|
||||||
else
|
|
||||||
parentToRefresh = parentFileModel;
|
|
||||||
|
|
||||||
GWT.log("share completed throwing refresh folder : "
|
|
||||||
+ parentToRefresh.getName() + " get id: "
|
|
||||||
+ parentToRefresh.getIdentifier());
|
|
||||||
|
|
||||||
// REFRESH PARENT FOLDER
|
// 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
|
Timer t = new Timer() {
|
||||||
RefreshFolderEvent refEvent = new RefreshFolderEvent(
|
|
||||||
parentToRefresh, true, true, false);
|
@Override
|
||||||
refEvent.setForceReloadBreadCrumb(true);
|
public void run() {
|
||||||
eventBus.fireEvent(refEvent);
|
GWT.log("Runing refresh after wait: " + waitTiming); // TODO
|
||||||
|
FileModel parentToRefresh = null;
|
||||||
|
|
||||||
|
if (isNewFolder)
|
||||||
|
parentToRefresh = parentModel;
|
||||||
|
else
|
||||||
|
parentToRefresh = parentFileModel;
|
||||||
|
|
||||||
|
GWT.log("share completed throwing refresh folder : "
|
||||||
|
+ parentToRefresh.getName() + " get id: "
|
||||||
|
+ parentToRefresh.getIdentifier());
|
||||||
|
|
||||||
|
// UPDATED ID
|
||||||
|
RefreshFolderEvent refEvent = new RefreshFolderEvent(
|
||||||
|
parentToRefresh, true, true, false);
|
||||||
|
refEvent.setForceReloadBreadCrumb(true);
|
||||||
|
eventBus.fireEvent(refEvent);
|
||||||
|
explorerPanel.unmask();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
t.schedule(waitTiming);
|
||||||
|
|
||||||
}
|
}
|
||||||
explorerPanel.unmask();
|
explorerPanel.unmask();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue