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:
parent
8125a7135c
commit
a6e128d2ad
|
@ -188,7 +188,7 @@ public class AppController implements SubscriberInterface {
|
||||||
}
|
}
|
||||||
|
|
||||||
if(folderDestinationId!=null){
|
if(folderDestinationId!=null){
|
||||||
Info.display("Info", "pasting...");
|
// Info.display("Info", "pasting...");
|
||||||
AppControllerExplorer.getEventBus().fireEvent(new PasteItemEvent(pasteItemEvent.getItemId(), folderDestinationId));
|
AppControllerExplorer.getEventBus().fireEvent(new PasteItemEvent(pasteItemEvent.getItemId(), folderDestinationId));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1271,16 +1271,30 @@ public class AppController implements SubscriberInterface {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void refreshFolder(FileModel folderTarget) {
|
public void refreshFolder(FileModel folderTarget, boolean forceRefresh) {
|
||||||
|
|
||||||
if(folderTarget!=null){
|
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){
|
if(filePath!=null){
|
||||||
|
|
||||||
|
//REFRESH FOLDER ONLY IF IS THE LAST ITEM OF BREADCRUMB
|
||||||
if(folderTarget.getIdentifier().compareToIgnoreCase(filePath.getIdentifier())==0){
|
if(folderTarget.getIdentifier().compareToIgnoreCase(filePath.getIdentifier())==0){
|
||||||
|
|
||||||
//REFRESH FOLDER ONLY IF IS THE LAST ITEM OF BREADCRUMB
|
|
||||||
FileGridModel folder = wsPortlet.getGridGroupContainer().getFileGridModelByIdentifier(folderTarget.getIdentifier());
|
FileGridModel folder = wsPortlet.getGridGroupContainer().getFileGridModelByIdentifier(folderTarget.getIdentifier());
|
||||||
|
|
||||||
GWT.log("refresh folder :" +folder);
|
GWT.log("refresh folder :" +folder);
|
||||||
|
|
|
@ -8,7 +8,7 @@ package org.gcube.portlets.user.workspace.client;
|
||||||
public class ConstantsPortlet {
|
public class ConstantsPortlet {
|
||||||
|
|
||||||
// ToolBar button
|
// ToolBar button
|
||||||
public static final String CATEGORIZE = "Categorize";
|
public static final String CATEGORIZE = "";
|
||||||
|
|
||||||
public static final String REFRESH = "Refresh";
|
public static final String REFRESH = "Refresh";
|
||||||
public static final String ADDFOLDER = "New Folder";
|
public static final String ADDFOLDER = "New Folder";
|
||||||
|
|
Loading…
Reference in New Issue