roneditor.ruleview.commands
Class DeleteMappingCommand

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

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

Command for deleting a mapping.


Field Summary
private  ronmodel.Codomain codomain
           
private static java.lang.String DeleteCommand_Label
           
private  ronmodel.Mapping mapping
           
private  ronmodel.ONNode source
           
private  ronmodel.ONNode target
           
 
Constructor Summary
DeleteMappingCommand()
           
 
Method Summary
 boolean canExecute()
           
 void execute()
          Entry point for command execution.
 ronmodel.Mapping getMapping()
           
 void redo()
           
 void setMapping(ronmodel.Mapping mapping)
           
 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

DeleteCommand_Label

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

codomain

private ronmodel.Codomain codomain

mapping

private ronmodel.Mapping mapping

source

private ronmodel.ONNode source

target

private ronmodel.ONNode target
Constructor Detail

DeleteMappingCommand

public DeleteMappingCommand()
Method Detail

execute

public void execute()
Entry point for command execution. mapping wird gelöscht

Overrides:
execute in class org.eclipse.gef.commands.Command

redo

public void redo()
Overrides:
redo in class org.eclipse.gef.commands.Command
See Also:
Command.redo()

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
See Also:
Command.canExecute()

getMapping

public ronmodel.Mapping getMapping()

setMapping

public void setMapping(ronmodel.Mapping mapping)