Eclipse Platform
Release 3.3

org.eclipse.ui.views.navigator
Class ResourceNavigatorRenameAction

java.lang.Object
  extended byorg.eclipse.core.commands.common.EventManager
      extended byorg.eclipse.jface.action.AbstractAction
          extended byorg.eclipse.jface.action.Action
              extended byorg.eclipse.ui.actions.BaseSelectionListenerAction
                  extended byorg.eclipse.ui.actions.SelectionListenerAction
                      extended byorg.eclipse.ui.actions.WorkspaceAction
                          extended byorg.eclipse.ui.actions.RenameResourceAction
                              extended byorg.eclipse.ui.views.navigator.ResourceNavigatorRenameAction
All Implemented Interfaces:
IAction, ISelectionChangedListener

public class ResourceNavigatorRenameAction
extends RenameResourceAction

The ResourceNavigatorRenameAction is the rename action used by the ResourceNavigator that also allows updating after rename.

Since:
2.0

Field Summary
 
Fields inherited from class org.eclipse.ui.actions.RenameResourceAction
ID
 
Fields inherited from interface org.eclipse.jface.action.IAction
AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_UNSPECIFIED, CHECKED, DESCRIPTION, ENABLED, HANDLED, IMAGE, RESULT, TEXT, TOOL_TIP_TEXT
 
Constructor Summary
ResourceNavigatorRenameAction(Shell shell, TreeViewer treeViewer)
          Create a ResourceNavigatorRenameAction and use the tree of the supplied viewer for editing.
 
Method Summary
 void handleKeyReleased(KeyEvent event)
          Handle the key release
protected  void runWithNewPath(IPath path, IResource resource)
           
 
Methods inherited from class org.eclipse.ui.actions.RenameResourceAction
createOperation, getActionResources, getModelProviderIds, getOperationMessage, getProblemsMessage, getProblemsTitle, invokeOperation, queryNewResourceName, run, setModelProviderIds, setTextActionHandler, updateSelection
 
Methods inherited from class org.eclipse.ui.actions.WorkspaceAction
runInBackground, runInBackground, runInBackground, shouldPerformResourcePruning
 
Methods inherited from class org.eclipse.ui.actions.SelectionListenerAction
clearCache, getSelectedNonResources, getSelectedResources, resourceIsType, selectionIsOfType
 
Methods inherited from class org.eclipse.ui.actions.BaseSelectionListenerAction
getStructuredSelection, runWithEvent, selectionChanged, selectionChanged
 
Methods inherited from class org.eclipse.jface.action.Action
convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText
 
Methods inherited from class org.eclipse.jface.action.AbstractAction
addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListener
 
Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.action.IAction
addPropertyChangeListener, removePropertyChangeListener
 

Constructor Detail

ResourceNavigatorRenameAction

public ResourceNavigatorRenameAction(Shell shell,
                                     TreeViewer treeViewer)
Create a ResourceNavigatorRenameAction and use the tree of the supplied viewer for editing.

Parameters:
shell - Shell
treeViewer - TreeViewer
Method Detail

runWithNewPath

protected void runWithNewPath(IPath path,
                              IResource resource)
Overrides:
runWithNewPath in class RenameResourceAction
Parameters:
path - the path
resource - the resource

handleKeyReleased

public void handleKeyReleased(KeyEvent event)
Handle the key release


Eclipse Platform
Release 3.3

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.