Package org.eclipse.ui.actions

Examples of org.eclipse.ui.actions.MoveFilesAndFoldersOperation


                    operation = new CopyFilesAndFoldersOperation(getShell());
                } else {
                    if (DEBUG) {
                        System.out.println("ResourceDropAdapterAssistant.validateDrop validating MOVE."); //$NON-NLS-1$
                    }
                    operation = new MoveFilesAndFoldersOperation(getShell());
                }
                message = operation.validateDestination(destination, selectedResources);
            }
        } // file import?
        else if (FileTransfer.getInstance().isSupportedType(transferType)) {
View Full Code Here


        String message = null;
        if (selectedResources.length == 0) {
            message = WorkbenchNavigatorMessages.DropAdapter_dropOperationErrorOther;
        } else {
            MoveFilesAndFoldersOperation operation;

            operation = new MoveFilesAndFoldersOperation(getShell());
            message = operation.validateDestination(destination, selectedResources);
        }
        if (message != null) {
            return WorkbenchNavigatorPlugin.createErrorStatus(0, message, null);
        }
        return Status.OK_STATUS;
View Full Code Here

        aDropTarget = getActual(aDropTarget);

        IContainer target = getActualTarget((IResource) aDropTarget);
        IResource[] resources = getSelectedResources(aDragSelection);

        MoveFilesAndFoldersOperation operation = new MoveFilesAndFoldersOperation(getShell());
        operation.copyResources(resources, target);

        if (target != null && target.isAccessible()) {
            try {
                target.refreshLocal(IResource.DEPTH_ONE, null);
            } catch (CoreException e) {
View Full Code Here

        IContainer target = getActualTarget((IResource) getCurrentTarget(dropAdapter));
        ReadOnlyStateChecker checker = new ReadOnlyStateChecker(getShell(),
                WorkbenchNavigatorMessages.MoveResourceAction_title,
                WorkbenchNavigatorMessages.MoveResourceAction_checkMoveMessage);
        sources = checker.checkReadOnlyResources(sources);
        MoveFilesAndFoldersOperation operation = new MoveFilesAndFoldersOperation(getShell());
        operation.copyResources(sources, target);

        return problems;
    }
View Full Code Here

            } else {
                CopyFilesAndFoldersOperation operation;
                if (dropOperation == DND.DROP_COPY) {
                    operation = new CopyFilesAndFoldersOperation(getShell());
                } else {
                    operation = new MoveFilesAndFoldersOperation(getShell());
                }
                message = operation.validateDestination(destination, selectedResources);
            }
        } // file import?
        else if (FileTransfer.getInstance().isSupportedType(transferType)) {
View Full Code Here

      } else {
        CopyFilesAndFoldersOperation operation;
        if (lastValidOperation == DND.DROP_COPY) {
          operation = new CopyFilesAndFoldersOperation(getShell());
        } else {
          operation = new MoveFilesAndFoldersOperation(getShell());
        }
        message = operation.validateDestination(destination,
            selectedResources);
      }
    } // file import?
View Full Code Here

TOP

Related Classes of org.eclipse.ui.actions.MoveFilesAndFoldersOperation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.