roneditor.objectnetview.commands
Class EditONNodeCommand
java.lang.Object
org.eclipse.gef.commands.Command
roneditor.objectnetview.commands.EditONNodeCommand
- Direct Known Subclasses:
- EditONPlaceCommand, EditONTransitionCommand
public abstract class EditONNodeCommand
- extends org.eclipse.gef.commands.Command
Edit node properties.
Field Summary |
private java.lang.String |
newName
|
private java.lang.String |
oldName
|
private ronmodel.ONNode |
onNode
|
Methods inherited from class org.eclipse.gef.commands.Command |
canExecute, canUndo, chain, dispose, getDebugLabel, getLabel, setDebugLabel, setLabel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
onNode
private ronmodel.ONNode onNode
oldName
private java.lang.String oldName
newName
private java.lang.String newName
EditONNodeCommand
public EditONNodeCommand()
execute
public void execute()
- Properties von einem
ONNode
ändern
- Overrides:
execute
in class org.eclipse.gef.commands.Command
- See Also:
Command.execute()
undo
public void undo()
- Overrides:
undo
in class org.eclipse.gef.commands.Command
- See Also:
Command.undo()
redo
public void redo()
- Overrides:
redo
in class org.eclipse.gef.commands.Command
- See Also:
Command.redo()
getONNode
public ronmodel.ONNode getONNode()
- Returns:
- the node
setONNode
public void setONNode(ronmodel.ONNode onNode)
- Parameters:
onNode
- the node to set
getNewName
public java.lang.String getNewName()
- Returns:
- the newName
setNewName
public void setNewName(java.lang.String newName)
- Parameters:
newName
- the newName to set