roneditor.ruleview.commands
Class DeleteNACCommand

java.lang.Object
  extended by org.eclipse.gef.commands.Command
      extended by 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
           
 
Constructor Summary
DeleteNACCommand()
          Constructor.
 
Method Summary
protected  void addMappings()
           
 boolean canExecute()
           
protected  void deleteMappings()
           
 void execute()
           
 void redo()
           
 void setNac(ronmodel.NAC nac)
           
 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

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

DeleteNACCommand

public DeleteNACCommand()
Constructor.

Method Detail

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()