vocleditor.commands
Class DeleteAssociationRoleCommand

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

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

Command for deleting an associationrole.


Constructor Summary
DeleteAssociationRoleCommand()
          Constructor, simply set's the command name.
 
Method Summary
 void execute()
          Entry point for command execution.
 void redo()
          Redo command execution.
 void setAssociationRole(VOCLModel.AssociationRole associationrole)
          Sets the association role.
 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

DeleteAssociationRoleCommand

public DeleteAssociationRoleCommand()
Constructor, simply set's the command name.

Method Detail

execute

public void execute()
Entry point for command execution.

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

undo

public void undo()
Undo command execution.

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

redo

public void redo()
Redo command execution.

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

setAssociationRole

public void setAssociationRole(VOCLModel.AssociationRole associationrole)
Sets the association role.

Parameters:
associationrole - the association role to set