roneditor.ruleview.commands
Class CreateNACCommand
java.lang.Object
org.eclipse.gef.commands.Command
roneditor.ruleview.commands.CreateNACCommand
public class CreateNACCommand
- extends org.eclipse.gef.commands.Command
command for a Nac-creation
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 |
createCommand_Label
private static final java.lang.String createCommand_Label
- See Also:
- Constant Field Values
rule
protected ronmodel.Rule rule
nac
protected ronmodel.NAC nac
CreateNACCommand
public CreateNACCommand()
- Constructor.
execute
public void execute()
- ein Nac wird im
Rule
eingefügt
- 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()
setNac
public void setNac(ronmodel.NAC nac)
setRule
public void setRule(ronmodel.Rule rule)
canExecute
public boolean canExecute()
- Overrides:
canExecute
in class org.eclipse.gef.commands.Command