private IStatus performProjectCopy(final CommonDropAdapter aDropAdapter, final Shell shell, final IResource[] resources) { ResourceManager.setSelectedFolder(aDropAdapter.getCurrentTarget()); for (int i = 0; i < resources.length; i++) { final CopyProjectOperation operation = new CopyProjectOperation(shell); operation.copyProject((IProject) resources[i]); } return null; }
private void pasteProjects(IProject[] projects){ Shell shell= getShell(); for (int i = 0; i < projects.length; i++) { new CopyProjectOperation(shell).copyProject(projects[i]); } }