Moved mask into RPC success

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@119745 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2015-10-14 13:12:05 +00:00
parent dff6d6a52f
commit 9dc3d531c5
1 changed files with 2 additions and 2 deletions

View File

@ -710,7 +710,6 @@ public class AsyncTreePanel extends LayoutContainer {
private void reloadTreeLevelAndExpandFolder(final FolderModel folder, final boolean expandFolder){ private void reloadTreeLevelAndExpandFolder(final FolderModel folder, final boolean expandFolder){
treePanel.mask(ConstantsExplorer.VALIDATINGOPERATION,ConstantsExplorer.LOADINGSTYLE);
AppControllerExplorer.rpcWorkspaceService.getFolderChildren(folder, new AsyncCallback<List<FileModel>>(){ AppControllerExplorer.rpcWorkspaceService.getFolderChildren(folder, new AsyncCallback<List<FileModel>>(){
@Override @Override
@ -728,11 +727,12 @@ public class AsyncTreePanel extends LayoutContainer {
@Override @Override
public void onSuccess(List<FileModel> result) { public void onSuccess(List<FileModel> result) {
treePanel.unmask(); treePanel.mask(ConstantsExplorer.VALIDATINGOPERATION,ConstantsExplorer.LOADINGSTYLE);
store.removeAll(folder); store.removeAll(folder);
// addChildrenToFolder(folder.getIdentifier(), result); // addChildrenToFolder(folder.getIdentifier(), result);
addChildrenToFolder(folder, result); addChildrenToFolder(folder, result);
setExpandTreeLevel(folder, expandFolder); setExpandTreeLevel(folder, expandFolder);
treePanel.unmask();
} }
}); });