completed copy and paste
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace@81309 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
012b120035
commit
8125a7135c
|
@ -87,6 +87,7 @@ import org.gcube.portlets.user.workspace.client.view.windows.MessageBoxAlert;
|
|||
import org.gcube.portlets.user.workspace.shared.SessionExpiredException;
|
||||
import org.gcube.portlets.user.wsmail.client.forms.MailForm;
|
||||
|
||||
import com.extjs.gxt.ui.client.widget.Info;
|
||||
import com.extjs.gxt.ui.client.widget.LayoutContainer;
|
||||
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
|
||||
import com.google.gwt.core.client.GWT;
|
||||
|
@ -186,9 +187,10 @@ public class AppController implements SubscriberInterface {
|
|||
|
||||
}
|
||||
|
||||
if(folderDestinationId!=null)
|
||||
if(folderDestinationId!=null){
|
||||
Info.display("Info", "pasting...");
|
||||
AppControllerExplorer.getEventBus().fireEvent(new PasteItemEvent(pasteItemEvent.getItemId(), folderDestinationId));
|
||||
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -1272,14 +1274,25 @@ public class AppController implements SubscriberInterface {
|
|||
public void refreshFolder(FileModel folderTarget) {
|
||||
|
||||
if(folderTarget!=null){
|
||||
FileModel filePath = wsPortlet.getToolBarPath().getLastParent();
|
||||
|
||||
//REFRESH FOLDER ONLY IF IS DISPLAYED YOUR CHILDREN
|
||||
FileGridModel folder = wsPortlet.getGridGroupContainer().getFileGridModelByIdentifier(folderTarget.getIdentifier());
|
||||
if(filePath!=null){
|
||||
|
||||
GWT.log("refresh folder :" +folder);
|
||||
if(folderTarget.getIdentifier().compareToIgnoreCase(filePath.getIdentifier())==0){
|
||||
|
||||
updateStoreByRpc(folderTarget);
|
||||
//REFRESH FOLDER ONLY IF IS THE LAST ITEM OF BREADCRUMB
|
||||
FileGridModel folder = wsPortlet.getGridGroupContainer().getFileGridModelByIdentifier(folderTarget.getIdentifier());
|
||||
|
||||
GWT.log("refresh folder :" +folder);
|
||||
|
||||
updateStoreByRpc(folderTarget);
|
||||
}
|
||||
}
|
||||
|
||||
GWT.log("folderTarget is not same folder path, refresh skypped");
|
||||
}
|
||||
else
|
||||
GWT.log("folderTarget is null, refresh skypped");
|
||||
}
|
||||
|
||||
// @Override
|
||||
|
@ -1360,6 +1373,8 @@ public class AppController implements SubscriberInterface {
|
|||
*/
|
||||
@Override
|
||||
public void pasteEventIsCompleted() {
|
||||
|
||||
Info.display("Info", "pasting...");
|
||||
wsPortlet.getGxtCardLayoutResultPanel().getToolBarItemFunctionalities().activePasteButton(false);
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue