roneditor.objectnetview.commands
Class DeleteONArcCommand
java.lang.Object
org.eclipse.gef.commands.Command
roneditor.objectnetview.commands.DeleteONArcCommand
public class DeleteONArcCommand
- extends org.eclipse.gef.commands.Command
Command for deleting a ONArc.
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
onArc
private ronmodel.ONArc onArc
source
private ronmodel.ONNode source
target
private ronmodel.ONNode target
objectNet
private ronmodel.ObjectNet objectNet
DeleteONArcCommand
public DeleteONArcCommand()
- Constructor
execute
public void execute()
- Entry point for command execution.
ein
ONArc
wird aus einem ObjectNet
gelöscht
- 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
getObjectNet
public ronmodel.ObjectNet getObjectNet()
- Returns:
- the objectNet
setObjectNet
public void setObjectNet(ronmodel.ObjectNet objectNet)
- Parameters:
objectNet
- the objectNet to set
getONArc
public ronmodel.ONArc getONArc()
- Returns:
- the onArc
setONArc
public void setONArc(ronmodel.ONArc onArc)
- Parameters:
onArc
- the onArc to set
getSource
public ronmodel.ONNode getSource()
- Returns:
- the source
setSource
public void setSource(ronmodel.ONNode source)
- Parameters:
source
- the source to set
getTarget
public ronmodel.ONNode getTarget()
- Returns:
- the target
setTarget
public void setTarget(ronmodel.ONNode target)
- Parameters:
target
- the target to set
canExecute
public boolean canExecute()
- Overrides:
canExecute
in class org.eclipse.gef.commands.Command