added mask to trash operation
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace@95705 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
9c7606b033
commit
25b7125dda
|
@ -88,12 +88,16 @@ public class WindowTrash extends Window {
|
|||
public void executeOperationOnTrashContainer(List<String> trashIds, WorkspaceTrashOperation operation) {
|
||||
|
||||
if(operation.equals(WorkspaceTrashOperation.DELETE_PERMANENTLY)){
|
||||
this.mask("Deleting");
|
||||
deleteListItems(trashIds);
|
||||
|
||||
}else if(operation.equals(WorkspaceTrashOperation.RESTORE)){
|
||||
this.mask("Restoring");
|
||||
deleteListItems(trashIds);
|
||||
}
|
||||
|
||||
this.unmask();
|
||||
|
||||
updateTrashIcon(this.trashContainers.trashSize()>0);
|
||||
}
|
||||
|
||||
|
@ -102,10 +106,11 @@ public class WindowTrash extends Window {
|
|||
}
|
||||
|
||||
private void deleteListItems(List<String> trashIds){
|
||||
|
||||
|
||||
for (String identifier : trashIds) {
|
||||
this.trashContainers.deleteItem(identifier);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void maskContainer(String title){
|
||||
|
|
Loading…
Reference in New Issue