roneditor.ronview.commands
Class DeleteHLArcCommand

java.lang.Object
  extended by org.eclipse.gef.commands.Command
      extended by roneditor.ronview.commands.DeleteHLArcCommand

public class DeleteHLArcCommand
extends org.eclipse.gef.commands.Command

Command for deleting a HLArc.


Field Summary
private static java.lang.String DeleteCommand_Label
           
private  ronmodel.HLArc hlArc
           
private  ronmodel.RON ron
           
private  ronmodel.HLNode source
           
private  ronmodel.HLNode target
           
 
Constructor Summary
DeleteHLArcCommand()
          constructor
 
Method Summary
 boolean canExecute()
           
 void execute()
          Entry point for command execution.
 ronmodel.HLArc getHlArc()
           
 ronmodel.RON getRon()
           
 ronmodel.HLNode getSource()
           
 ronmodel.HLNode getTarget()
           
 void redo()
           
 void setHlArc(ronmodel.HLArc hlArc)
           
 void setRon(ronmodel.RON ron)
           
 void setSource(ronmodel.HLNode source)
           
 void setTarget(ronmodel.HLNode target)
           
 void undo()
          Undo command execution.
 
Methods inherited from class org.eclipse.gef.commands.Command
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

DeleteCommand_Label

private static final java.lang.String DeleteCommand_Label
See Also:
Constant Field Values

hlArc

private ronmodel.HLArc hlArc

source

private ronmodel.HLNode source

target

private ronmodel.HLNode target

ron

private ronmodel.RON ron
Constructor Detail

DeleteHLArcCommand

public DeleteHLArcCommand()
constructor

Method Detail

execute

public void execute()
Entry point for command execution. ein existierendes HLArc zwischen 2 hlNodes wird gelöscht

Overrides:
execute in class org.eclipse.gef.commands.Command

redo

public void redo()
Overrides:
redo in class org.eclipse.gef.commands.Command

undo

public void undo()
Undo command execution.

Overrides:
undo in class org.eclipse.gef.commands.Command

canExecute

public boolean canExecute()
Overrides:
canExecute in class org.eclipse.gef.commands.Command

getHlArc

public ronmodel.HLArc getHlArc()

setHlArc

public void setHlArc(ronmodel.HLArc hlArc)

getRon

public ronmodel.RON getRon()

setRon

public void setRon(ronmodel.RON ron)

getSource

public ronmodel.HLNode getSource()

setSource

public void setSource(ronmodel.HLNode source)

getTarget

public ronmodel.HLNode getTarget()

setTarget

public void setTarget(ronmodel.HLNode target)