removed label "categorize"

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace@81316 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2013-09-12 15:09:12 +00:00
parent 8125a7135c
commit a6e128d2ad
2 changed files with 19 additions and 5 deletions

View File

@ -188,7 +188,7 @@ public class AppController implements SubscriberInterface {
}
if(folderDestinationId!=null){
Info.display("Info", "pasting...");
// Info.display("Info", "pasting...");
AppControllerExplorer.getEventBus().fireEvent(new PasteItemEvent(pasteItemEvent.getItemId(), folderDestinationId));
}
}
@ -1271,16 +1271,30 @@ public class AppController implements SubscriberInterface {
}
@Override
public void refreshFolder(FileModel folderTarget) {
public void refreshFolder(FileModel folderTarget, boolean forceRefresh) {
if(folderTarget!=null){
FileModel filePath = wsPortlet.getToolBarPath().getLastParent();
if(forceRefresh){
//FORCED REFRESH FOLDER
FileGridModel folder = wsPortlet.getGridGroupContainer().getFileGridModelByIdentifier(folderTarget.getIdentifier());
GWT.log("force refresh folder :" +folder);
updateStoreByRpc(folderTarget);
return;
}
FileModel filePath = wsPortlet.getToolBarPath().getLastParent();
if(filePath!=null){
//REFRESH FOLDER ONLY IF IS THE LAST ITEM OF BREADCRUMB
if(folderTarget.getIdentifier().compareToIgnoreCase(filePath.getIdentifier())==0){
//REFRESH FOLDER ONLY IF IS THE LAST ITEM OF BREADCRUMB
FileGridModel folder = wsPortlet.getGridGroupContainer().getFileGridModelByIdentifier(folderTarget.getIdentifier());
GWT.log("refresh folder :" +folder);

View File

@ -8,7 +8,7 @@ package org.gcube.portlets.user.workspace.client;
public class ConstantsPortlet {
// ToolBar button
public static final String CATEGORIZE = "Categorize";
public static final String CATEGORIZE = "";
public static final String REFRESH = "Refresh";
public static final String ADDFOLDER = "New Folder";