roneditor.ruleview.commands
Class CopyRHS2NACCommand

java.lang.Object
  extended by org.eclipse.gef.commands.Command
      extended by roneditor.ruleview.commands.CopyRHS2NACCommand

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

command für Kopieren eines RHS in ein NAC


Field Summary
private static java.lang.String copyCommand_Label
           
protected  ronmodel.NAC nac
           
protected  ronmodel.RHS rhs
           
 
Constructor Summary
CopyRHS2NACCommand()
          Constructor.
 
Method Summary
 boolean canExecute()
          True if the command can be executed, false otherwise.
 void execute()
          Entry point for the command execution.
 java.lang.String getLabel()
          Returns the command label.
 void redo()
          Redo command execution.
 void setNac(ronmodel.NAC nac)
           
 void setRhs(ronmodel.RHS rhs)
           
 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

copyCommand_Label

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

rhs

protected ronmodel.RHS rhs

nac

protected ronmodel.NAC nac
Constructor Detail

CopyRHS2NACCommand

public CopyRHS2NACCommand()
Constructor.

Method Detail

canExecute

public boolean canExecute()
True if the command can be executed, false otherwise.

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

execute

public void execute()
Entry point for the command execution. der Inhalt von LHS wird in einem Codomain Kopiert

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

setNac

public void setNac(ronmodel.NAC nac)

setRhs

public void setRhs(ronmodel.RHS rhs)