| org.eclipse.ui.actions.SelectionListenerAction org.eclipse.ui.views.navigator.PasteAction
PasteAction | class PasteAction extends SelectionListenerAction (Code) | | Standard action for pasting resources on the clipboard to the selected resource's location.
This class may be instantiated; it is not intended to be subclassed.
since: 2.0 |
Field Summary | |
final public static String | ID The id of this action. |
Constructor Summary | |
public | PasteAction(Shell shell, Clipboard clipboard) Creates a new action. |
Method Summary | |
public void | run() Implementation of method defined on IAction . | protected boolean | updateSelection(IStructuredSelection selection) The PasteAction implementation of this
SelectionListenerAction method enables this action if
a resource compatible with what is on the clipboard is selected. |
ID | final public static String ID(Code) | | The id of this action.
|
PasteAction | public PasteAction(Shell shell, Clipboard clipboard)(Code) | | Creates a new action.
Parameters: shell - the shell for any dialogs Parameters: clipboard - the clipboard |
run | public void run()(Code) | | Implementation of method defined on IAction .
|
updateSelection | protected boolean updateSelection(IStructuredSelection selection)(Code) | | The PasteAction implementation of this
SelectionListenerAction method enables this action if
a resource compatible with what is on the clipboard is selected.
-Clipboard must have IResource or java.io.File
-Projects can always be pasted if they are open
-Workspace folder may not be copied into itself
-Files and folders may be pasted to a single selected folder in open
project or multiple selected files in the same folder
|
|
|