Examples of copyResources()


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

                MessageDialog.openInformation(null, "Cannot paste project(s)",
                        "Pasting of a project onto a (JCR) node is not possible");
                return;
            } else {
                CopyFilesAndFoldersOperation operation = new CopyFilesAndFoldersOperation(null);
                operation.copyResources(resourceData, getDropContainer());
            }
            return;
        }

        // try the file transfer
View Full Code Here

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

    if (resourceData != null && resourceData.length > 0) {

      // resource always contains either projects or files and folders
      if (resourceData[0].getType() != IResource.PROJECT) {
        CopyFilesAndFoldersOperation operation = new CopyFilesAndFoldersOperation(mShell);
        operation.copyResources(resourceData, getNewParent());
      } else {
        for (IResource element : resourceData) {
            new CopyProjectOperation(mShell).copyProject((IProject) element);
        }
      }
View Full Code Here

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

    if (resourceData != null && resourceData.length > 0) {

      // resource always contains either projects or files and folders
      if (resourceData[0].getType() != IResource.PROJECT) {
        CopyFilesAndFoldersOperation operation = new CopyFilesAndFoldersOperation(mShell);
        operation.copyResources(resourceData, getNewParent());
      } else {
        for (IResource element : resourceData) {
            new CopyProjectOperation(mShell).copyProject((IProject) element);
        }
      }
View Full Code Here

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

            } else {
                // enablement should ensure that we always have access to a container
                IContainer container = getContainer();

                CopyFilesAndFoldersOperation operation = new CopyFilesAndFoldersOperation(this.shell);
                operation.copyResources(resourceData, container);
            }
            return;
        }

        // try a file transfer
View Full Code Here

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

                validateTarget(getCurrentTarget(dropAdapter), dropAdapter.getCurrentTransfer(),
                        dropAdapter.getCurrentOperation()));

        IContainer target = getActualTarget((IResource) getCurrentTarget(dropAdapter));
        CopyFilesAndFoldersOperation operation = new CopyFilesAndFoldersOperation(shell);
        operation.copyResources(sources, target);

        return problems;
    }

    /**
 
View Full Code Here

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

        validateTarget(getCurrentTarget(), getCurrentTransfer()));

    IContainer target = getActualTarget((IResource) getCurrentTarget());
    CopyFilesAndFoldersOperation operation = new CopyFilesAndFoldersOperation(
        shell);
    operation.copyResources(sources, target);

    return problems;
  }

  /**
 
View Full Code Here

Examples of org.eclipse.ui.actions.CopyProjectOperation.copyResources()

            } else {
                // enablement should ensure that we always have access to a container
                IContainer container = getContainer();

                CopyFilesAndFoldersOperation operation = new CopyFilesAndFoldersOperation(this.shell);
                operation.copyResources(resourceData, container);
            }
            return;
        }

        // try a file transfer
View Full Code Here

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

        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

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

        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;
    }

    private Object getCurrentTarget(CommonDropAdapter dropAdapter) {
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.