Examples of validateDestination()


Examples of org.eclipse.ui.actions.CopyFilesAndFoldersOperation.validateDestination()

                    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)) {
            String[] sourceNames = (String[]) FileTransfer.getInstance().nativeToJava(transferType);
            if (sourceNames == null) {
View Full Code Here

Examples of org.eclipse.ui.actions.CopyFilesAndFoldersOperation.validateDestination()

                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)) {
            String[] sourceNames = (String[]) FileTransfer.getInstance().nativeToJava(transferType);
            if (sourceNames == null) {
View Full Code Here

Examples of org.eclipse.ui.actions.CopyFilesAndFoldersOperation.validateDestination()

        if (lastValidOperation == 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)) {
      String[] sourceNames = (String[]) FileTransfer.getInstance()
View Full Code Here

Examples of org.eclipse.ui.actions.MoveFilesAndFoldersOperation.validateDestination()

            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
TOP
Copyright © 2018 www.massapi.com. 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.