| java.lang.Object org.eclipse.ui.actions.CopyProjectOperation
CopyProjectOperation | public class CopyProjectOperation (Code) | | Implementation class to perform the actual copying of project resources from
the clipboard when paste action is invoked.
This class may be instantiated; it is not intended to be subclassed.
|
Constructor Summary | |
public | CopyProjectOperation(Shell shell) Create a new operation initialized with a shell. |
Method Summary | |
public void | copyProject(IProject project) Paste a copy of the project on the clipboard to the workspace. | public String[] | getModelProviderIds() Returns the model provider ids that are known to the client
that instantiated this operation. | public 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) Validates that the copy of the project will not have undesirable side
effects. |
CopyProjectOperation | public CopyProjectOperation(Shell shell)(Code) | | Create a new operation initialized with a shell.
Parameters: shell - parent shell for error dialogs |
copyProject | public void copyProject(IProject project)(Code) | | Paste a copy of the project on the clipboard to the workspace.
Parameters: project - The project that is beign copied. |
getModelProviderIds | public String[] getModelProviderIds()(Code) | | Returns the model provider ids that are known to the client
that instantiated this operation.
the model provider ids that are known to the clientthat instantiated this operation. since: 3.2 |
setModelProviderIds | public void setModelProviderIds(String[] modelProviderIds)(Code) | | Sets the model provider ids that are known to the client that
instantiated this operation. Any potential side effects reported by these
models during validation will be ignored.
Parameters: modelProviderIds - the model providers known to the client who is using thisoperation. since: 3.2 |
validateCopy | protected static boolean validateCopy(Shell shell, IProject project, String newName, String[] modelProviderIds)(Code) | | Validates that the copy of the project will not have undesirable side
effects.
Parameters: shell - a shell Parameters: project - the project being copied Parameters: newName - the new name of the project Parameters: modelProviderIds - the model provider ids of models that are known to the client(and can hence be ignored) whether the operation should proceed since: 3.2 |
|
|