vocleditor.commands
Class DeleteSetClassifierRoleCommand

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

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

Author:
tugstugi Command for deleting a set classifier role.

Constructor Summary
DeleteSetClassifierRoleCommand()
          The constructor.
 
Method Summary
 void execute()
          Entry point for command execution.
 VOCLModel.NavExp getParent()
          Returns the parent nav exp.
 VOCLModel.SetClassifierRole getSetClassifierRole()
          Returns the set classifier role.
 void redo()
          Redo command execution.
 void setParent(VOCLModel.NavExp newParent)
          Sets the parent nav exp.
 void setSetClassifierRole(VOCLModel.SetClassifierRole setClassifierRole)
          Sets the set classifier 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

DeleteSetClassifierRoleCommand

public DeleteSetClassifierRoleCommand()
The constructor.

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

getParent

public VOCLModel.NavExp getParent()
Returns the parent nav exp.

Returns:
the parent nav exp

setParent

public void setParent(VOCLModel.NavExp newParent)
Sets the parent nav exp.

Parameters:
newParent - the new parent nav exp to set

getSetClassifierRole

public VOCLModel.SetClassifierRole getSetClassifierRole()
Returns the set classifier role.

Returns:
the set classifier role

setSetClassifierRole

public void setSetClassifierRole(VOCLModel.SetClassifierRole setClassifierRole)
Sets the set classifier role.

Parameters:
setClassifierRole - the set classifier role to set