roneditor.ruleview.commands
Class SwitchNacCommand

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

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

Command for switch NAC.


Field Summary
private  RulePage rulePage
           
private static java.lang.String SwitchNacCommand_Label
           
 
Constructor Summary
SwitchNacCommand(RulePage rulePage)
           
 
Method Summary
 boolean canExecute()
           
 void execute()
          Entry point for command execution.
 void redo()
           
 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

SwitchNacCommand_Label

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

rulePage

private RulePage rulePage
Constructor Detail

SwitchNacCommand

public SwitchNacCommand(RulePage rulePage)
Method Detail

execute

public void execute()
Entry point for command execution.

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