roneditor.objectnetview.commands
Class EditONNodeCommand

java.lang.Object
  extended by org.eclipse.gef.commands.Command
      extended by 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
           
 
Constructor Summary
EditONNodeCommand()
           
 
Method Summary
 void execute()
          Properties von einem ONNode ändern
 java.lang.String getNewName()
           
 ronmodel.ONNode getONNode()
           
 void redo()
           
 void setNewName(java.lang.String newName)
           
 void setONNode(ronmodel.ONNode onNode)
           
 void undo()
           
 
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
 

Field Detail

onNode

private ronmodel.ONNode onNode

oldName

private java.lang.String oldName

newName

private java.lang.String newName
Constructor Detail

EditONNodeCommand

public EditONNodeCommand()
Method Detail

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