| |
|
| org.eclipse.ui.actions.SelectionListenerAction org.eclipse.ui.actions.WorkspaceAction org.eclipse.ui.actions.RenameResourceAction
All known Subclasses: org.eclipse.ui.views.navigator.ResourceNavigatorRenameAction,
RenameResourceAction | public class RenameResourceAction extends WorkspaceAction (Code) | | Standard action for renaming the selected resources.
This class may be instantiated; it is not intended to be subclassed.
|
Field Summary | |
final public static String | ID The id of this action. |
ID | final public static String ID(Code) | | The id of this action.
|
RenameResourceAction | public RenameResourceAction(Shell shell)(Code) | | Creates a new action. Using this constructor directly will rename using a
dialog rather than the inline editor of a ResourceNavigator.
Parameters: shell - the shell for any dialogs |
RenameResourceAction | public RenameResourceAction(Shell shell, Tree tree)(Code) | | Creates a new action.
Parameters: shell - the shell for any dialogs Parameters: tree - the tree |
createOperation | protected IRunnableWithProgress createOperation(IStatus[] errorStatus)(Code) | | |
createParent | Composite createParent()(Code) | | |
getActionResources | protected List getActionResources()(Code) | | Returns the elements that the action is to be performed on. Return the
resource cached by the action as we cannot rely on the selection being
correct for inlined text.
list of resource elements (element type: IResource ) |
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 client thatinstantiated this operation. since: 3.2 |
getOperationMessage | protected String getOperationMessage()(Code) | | |
getProblemsMessage | protected String getProblemsMessage()(Code) | | |
invokeOperation | protected void invokeOperation(IResource resource, IProgressMonitor monitor)(Code) | | |
queryNewResourceName | protected String queryNewResourceName(IResource resource)(Code) | | Return the new name to be given to the target resource.
java.lang.String Parameters: resource - the resource to query status on |
runWithNewPath | protected void runWithNewPath(IPath path, IResource resource)(Code) | | Parameters: path - the path Parameters: resource - the resource |
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 |
setTextActionHandler | public void setTextActionHandler(TextActionHandler actionHandler)(Code) | | Set the text action handler.
Parameters: actionHandler - the action handler |
updateSelection | protected boolean updateSelection(IStructuredSelection selection)(Code) | | The RenameResourceAction implementation of this
SelectionListenerAction method ensures that this action is
disabled if any of the selections are not resources or resources that are
not local.
|
|
|
|