public class RenameNodeTreeAction extends AbstractTreeAction
Action
is used to rename nodes (TreeComposite
s) in
the TreeCompositeViewer
. Nodes cannot be renamed if they are
root-level (not counting the single root of the tree).Constructor and Description |
---|
RenameNodeTreeAction()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
run()
If the
Action can be run, this prompts the user for a new
name for the selected node and updates the node's name if the provided
string is valid. |
selectionChanged, setPartId
convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText
addPropertyChangeListener, removePropertyChangeListener
public void run()
Action
can be run, this prompts the user for a new
name for the selected node and updates the node's name if the provided
string is valid.run
in interface org.eclipse.jface.action.IAction
run
in class AbstractTreeAction