vocleditor.commands
Class DeleteClassifierRoleCommand

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

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

Command for deleting a ClassifierRole.


Constructor Summary
DeleteClassifierRoleCommand()
          Deletes a Classifier Role from a NavExp
 
Method Summary
 void execute()
          Entry point for command execution.
 void redo()
          Redo command execution.
 void setClassifierRole(VOCLModel.ClassifierRole classifierrole)
          sets the classifier to be deleted Stores information about the classifier and eventually about the context to enable clean command execution.
 void setParent(VOCLModel.NavExp voclmodel)
          Sets the parent navigation expression.
 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

DeleteClassifierRoleCommand

public DeleteClassifierRoleCommand()
Deletes a Classifier Role from a NavExp

Method Detail

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

setClassifierRole

public void setClassifierRole(VOCLModel.ClassifierRole classifierrole)
sets the classifier to be deleted Stores information about the classifier and eventually about the context to enable clean command execution.

Parameters:
classifierrole -

setParent

public void setParent(VOCLModel.NavExp voclmodel)
Sets the parent navigation expression.

Parameters:
voclmodel - the parent navigation expression