Java 类org.eclipse.ui.actions.CopyProjectOperation 实例源码

项目:gama    文件:NavigatorResourceDropAssistant.java   
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;
}
项目:Eclipse-Postfix-Code-Completion    文件:PasteAction.java   
private void pasteProjects(IProject[] projects){
    Shell shell= getShell();
    for (int i = 0; i < projects.length; i++) {
        new CopyProjectOperation(shell).copyProject(projects[i]);
    }
}
项目:Eclipse-Postfix-Code-Completion-Juno38    文件:PasteAction.java   
private void pasteProjects(IProject[] projects){
    Shell shell= getShell();
    for (int i = 0; i < projects.length; i++) {
        new CopyProjectOperation(shell).copyProject(projects[i]);
    }
}