public class CopyProjectOperation extends Object
This class may be instantiated; it is not intended to be subclassed.
Constructor and Description |
---|
CopyProjectOperation(Shell shell)
Create a new operation initialized with a shell.
|
Modifier and Type | Method and Description |
---|---|
void |
copyProject(IProject project)
Paste a copy of the project on the clipboard to the workspace.
|
String[] |
getModelProviderIds()
Returns the model provider ids that are known to the client
that instantiated this operation.
|
void |
setModelProviderIds(String[] modelProviderIds)
Sets the model provider ids that are known to the client that
instantiated this operation.
|
protected static boolean |
validateCopy(Shell shell,
IProject project,
String newName,
String[] modelProviderIds)
Deprecated.
As of 3.3, validation is performed in the undoable operation
executed by this operation.
|
public CopyProjectOperation(Shell shell)
shell
- parent shell for error dialogs@Deprecated protected static boolean validateCopy(Shell shell, IProject project, String newName, String[] modelProviderIds)
shell
- a shellproject
- the project being copiednewName
- the new name of the projectmodelProviderIds
- the model provider ids of models that are known to the client
(and can hence be ignored)public void copyProject(IProject project)
project
- The project that is beign copied.public String[] getModelProviderIds()
public void setModelProviderIds(String[] modelProviderIds)
modelProviderIds
- the model providers known to the client who is using this
operation.
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.