roneditor.ruleview.commands
Class DeleteNACCommand
java.lang.Object
org.eclipse.gef.commands.Command
roneditor.ruleview.commands.DeleteNACCommand
public class DeleteNACCommand
- extends org.eclipse.gef.commands.Command
Command for deleting a NAC.
Field Summary |
private static java.lang.String |
deleteCommand_Label
|
protected ronmodel.NAC |
nac
|
protected ronmodel.Rule |
rule
|
protected java.util.HashMap<ronmodel.Mapping,ronmodel.ONNode> |
sourceMappings
|
protected java.util.HashMap<ronmodel.Mapping,ronmodel.ONNode> |
targetMappings
|
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 |
deleteCommand_Label
private static final java.lang.String deleteCommand_Label
- See Also:
- Constant Field Values
rule
protected ronmodel.Rule rule
nac
protected ronmodel.NAC nac
sourceMappings
protected java.util.HashMap<ronmodel.Mapping,ronmodel.ONNode> sourceMappings
targetMappings
protected java.util.HashMap<ronmodel.Mapping,ronmodel.ONNode> targetMappings
DeleteNACCommand
public DeleteNACCommand()
- Constructor.
execute
public void execute()
- 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)
canExecute
public boolean canExecute()
- Overrides:
canExecute
in class org.eclipse.gef.commands.Command
deleteMappings
protected void deleteMappings()
addMappings
protected void addMappings()