vocleditor.commands
Class DeleteMethodCommand

java.lang.Object
  extended by org.eclipse.gef.commands.Command
      extended by vocleditor.commands.DeleteMethodCommand

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

Author:
tugstugi Command for deleting a place.

Constructor Summary
DeleteMethodCommand()
          Creates a new DeleteMethodCommand.
DeleteMethodCommand(boolean ignoreContext)
          Creates a new DeleteMethodCommand which doesnt care for the context.
 
Method Summary
 void execute()
          Entry point for command execution.
 void redo()
          Redo command execution.
 void setMethod(VOCLModel.Method method)
          Sets the method to be deleted
 void setParent(VOCLModel.ClassifierRole parent)
          Sets the ClassifierRole the method is to be deleted from
 void undo()
          Undo command execution.
 
Methods inherited from class org.eclipse.gef.commands.Command
canExecute, canUndo, chain, dispose, getDebugLabel, getLabel, setDebugLabel, setLabel
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeleteMethodCommand

public DeleteMethodCommand()
Creates a new DeleteMethodCommand.


DeleteMethodCommand

public DeleteMethodCommand(boolean ignoreContext)
Creates a new DeleteMethodCommand which doesnt care for the context.

Method Detail

setMethod

public void setMethod(VOCLModel.Method method)
Sets the method to be deleted

Parameters:
method - the method to be deleted

setParent

public void setParent(VOCLModel.ClassifierRole parent)
Sets the ClassifierRole the method is to be deleted from

Parameters:
parent - ClassifierRole which owns the method to be deleted

execute

public void execute()
Entry point for command execution.

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

redo

public void redo()
Redo command execution.

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