be.ac.vub.cocompose.eclipse.commands
Class DeleteCommand

java.lang.Object
  extended byorg.eclipse.gef.commands.Command
      extended bybe.ac.vub.cocompose.eclipse.commands.DeleteCommand

public class DeleteCommand
extends Command

Delete command for CoCompose elements.

Since:
0.2.0
Version:
0.2.0, 02/12/2003
Author:
Dennis Wagelaar

Constructor Summary
DeleteCommand()
          Creates a DeleteCommand.
 
Method Summary
 void execute()
           
 ModelElement getElement()
          Gets the element to be deleted.
protected  void primExecute()
          Execute implementation.
 void redo()
           
 void setElement(ModelElement element)
          Sets the element to be deleted.
 void undo()
           
 
Methods inherited from class org.eclipse.gef.commands.Command
canExecute, 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
 

Constructor Detail

DeleteCommand

public DeleteCommand()
Creates a DeleteCommand.

Method Detail

execute

public void execute()
See Also:
Command.execute()

redo

public void redo()
See Also:
Command.redo()

undo

public void undo()
See Also:
Command.undo()

getElement

public ModelElement getElement()
Gets the element to be deleted.

Returns:
the element to be deleted.

setElement

public void setElement(ModelElement element)
Sets the element to be deleted.

Parameters:
element - - the element to be deleted.

primExecute

protected void primExecute()
Execute implementation.

See Also:
Command.execute()