vocleditor.commands
Class EditClassifierRoleCommand

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

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

Command class for edit the place properties.


Constructor Summary
EditClassifierRoleCommand()
          The default constructor.
 
Method Summary
 void execute()
          Executes the command.
 void redo()
          Redo command execution.
 void setAttributes(java.util.List attributes)
          Sets the new list of attributes.
 void setChangedVariables(java.util.Hashtable changedVariables)
          Sets the the hashtable of changed variables.
 void setClassifierRole(VOCLModel.ClassifierRole classifierRole)
           
 void setCommandAttributes(java.lang.String name, java.lang.String type, java.util.Hashtable changedVariables, java.util.List attributes)
          Sets the command attributes.
 void setName(java.lang.String name)
          Sets the new name.
 void setType(java.lang.String type)
          Sets the new type.
 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

EditClassifierRoleCommand

public EditClassifierRoleCommand()
The default constructor.

Method Detail

setClassifierRole

public void setClassifierRole(VOCLModel.ClassifierRole classifierRole)
Parameters:
classifierRole - The ClassifierRole to modify.

execute

public void execute()
Executes the command.

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

setName

public void setName(java.lang.String name)
Sets the new name.

Parameters:
name - the new name

setType

public void setType(java.lang.String type)
Sets the new type.

Parameters:
type - the new type

setChangedVariables

public void setChangedVariables(java.util.Hashtable changedVariables)
Sets the the hashtable of changed variables.

Parameters:
changedVariables - the hashtable of changed variables.

setAttributes

public void setAttributes(java.util.List attributes)
Sets the new list of attributes.

Parameters:
attributes - the new list of attributes

setCommandAttributes

public void setCommandAttributes(java.lang.String name,
                                 java.lang.String type,
                                 java.util.Hashtable changedVariables,
                                 java.util.List attributes)
Sets the command attributes.

Parameters:
name - the new name
type - the new type
changedVariables - the list of changed variables
attributes - the new list of attributes