roneditor.ruleview.commands
Class CreateNACCommand

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

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

command for a Nac-creation


Field Summary
private static java.lang.String createCommand_Label
           
protected  ronmodel.NAC nac
           
protected  ronmodel.Rule rule
           
 
Constructor Summary
CreateNACCommand()
          Constructor.
 
Method Summary
 boolean canExecute()
           
 void execute()
          ein Nac wird im Rule eingefügt
 void redo()
           
 void setNac(ronmodel.NAC nac)
           
 void setRule(ronmodel.Rule rule)
           
 void undo()
           
 
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

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
Constructor Detail

CreateNACCommand

public CreateNACCommand()
Constructor.

Method Detail

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