vocleditor.commands
Class ClearLetExpsSubCommand

java.lang.Object
  extended by vocleditor.commands.ClearLetExpsSubCommand

public class ClearLetExpsSubCommand
extends java.lang.Object

Clears the Let Expression to "no variable" in an undoable way. This sub command is used by DeleteClassifierRoleCommand and others if their (deleted) variables are related to the a Let Expression.

Author:
bjoern

Constructor Summary
ClearLetExpsSubCommand(VOCLModel.NavExp navexp)
          creates a new ClearLetExpSubCommand.
 
Method Summary
 void execute()
          command execution.
 void redo()
          redoes command execution
 void undo()
          undoes command execution - resets context
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClearLetExpsSubCommand

public ClearLetExpsSubCommand(VOCLModel.NavExp navexp)
creates a new ClearLetExpSubCommand.

Parameters:
navexp - the navexp there where something is deleted from
Method Detail

execute

public void execute()
command execution. Sets letexps to "no variable" if there variables are not references from the Let Expression anymore


undo

public void undo()
undoes command execution - resets context


redo

public void redo()
redoes command execution