org.eclipse.ui.actions.CopyProjectOperation Java Examples

The following examples show how to use org.eclipse.ui.actions.CopyProjectOperation. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: NavigatorResourceDropAssistant.java    From gama with GNU General Public License v3.0 5 votes vote down vote up
private IStatus performProjectCopy(final CommonDropAdapter aDropAdapter, final Shell shell,
		final IResource[] resources) {
	ResourceManager.setSelectedFolder(aDropAdapter.getCurrentTarget());
	for (final IResource resource : resources) {
		final CopyProjectOperation operation = new CopyProjectOperation(shell);
		operation.copyProject((IProject) resource);
	}
	return null;
}
 
Example #2
Source File: PasteAction.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 4 votes vote down vote up
private void pasteProjects(IProject[] projects){
	Shell shell= getShell();
	for (int i = 0; i < projects.length; i++) {
		new CopyProjectOperation(shell).copyProject(projects[i]);
	}
}