roneditor.objectnetview.commands
Class ApplyRuleCommand
java.lang.Object
org.eclipse.gef.commands.Command
roneditor.objectnetview.commands.ApplyRuleCommand
public class ApplyRuleCommand
- extends org.eclipse.gef.commands.Command
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 |
objectNet
private ronmodel.ObjectNet objectNet
rule
private ronmodel.Rule rule
simulator
private RuleSimulator simulator
ApplyRuleCommand
public ApplyRuleCommand()
execute
public void execute()
- Overrides:
execute
in class org.eclipse.gef.commands.Command
undo
public void undo()
- Overrides:
undo
in class org.eclipse.gef.commands.Command
redo
public void redo()
- Overrides:
redo
in class org.eclipse.gef.commands.Command
canExecute
public boolean canExecute()
- True if the command can be executed, false otherwise.
- Overrides:
canExecute
in class org.eclipse.gef.commands.Command
setObjectNet
public void setObjectNet(ronmodel.ObjectNet objectNet)
setRule
public void setRule(ronmodel.Rule rule)