roneditor.ronview.commands
Class CreateHLArcCommand

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

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

Command class for creation a HLArc


Field Summary
private static java.lang.String ConnectionCommand_Description
           
private static java.lang.String ConnectionCommand_Label
           
protected  ronmodel.HLArc hlArc
           
protected  ronmodel.HLNode source
           
protected  ronmodel.HLNode target
           
 
Constructor Summary
CreateHLArcCommand()
          Constructor.
 
Method Summary
 boolean canExecute()
           
 void execute()
          Entry point for the command execution.
 ronmodel.HLArc getHlArc()
           
 java.lang.String getLabel()
          Returns the command label.
 ronmodel.HLNode getSource()
           
 ronmodel.HLNode getTarget()
           
 void redo()
          Redo command execution.
 void setHlArc(ronmodel.HLArc hlArc)
           
 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, setDebugLabel, setLabel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ConnectionCommand_Label

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

ConnectionCommand_Description

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

source

protected ronmodel.HLNode source

target

protected ronmodel.HLNode target

hlArc

protected ronmodel.HLArc hlArc
Constructor Detail

CreateHLArcCommand

public CreateHLArcCommand()
Constructor.

Method Detail

canExecute

public boolean canExecute()
Overrides:
canExecute in class org.eclipse.gef.commands.Command
Returns:
true wenn source und target unterschiedliche klassen haben und kein verbindung miteinander haben( HLArc)

execute

public void execute()
Entry point for the command execution. ein HLArc wird zwischen source und target eingefügt

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

getLabel

public java.lang.String getLabel()
Returns the command label.

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

redo

public void redo()
Redo command execution.

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

getHlArc

public ronmodel.HLArc getHlArc()

setHlArc

public void setHlArc(ronmodel.HLArc hlArc)

getSource

public ronmodel.HLNode getSource()

setSource

public void setSource(ronmodel.HLNode source)

getTarget

public ronmodel.HLNode getTarget()

setTarget

public void setTarget(ronmodel.HLNode target)