vocleditor.commands
Class ClearContextSubCommand

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

public class ClearContextSubCommand
extends java.lang.Object

Clears the Context to "undefined" in an undoable way. This sub command is used by DeleteClassifierRoleCommand and others if their model elements are related to the current constraint context.

Author:
bjoern

Constructor Summary
ClearContextSubCommand(VOCLModel.Context context)
          creates a new ClearContextSubCommand.
 
Method Summary
 void execute()
          command execution, sets context to undefined
 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

ClearContextSubCommand

public ClearContextSubCommand(VOCLModel.Context context)
creates a new ClearContextSubCommand.

Parameters:
context - the context to be cleared
Method Detail

execute

public void execute()
command execution, sets context to undefined


undo

public void undo()
undoes command execution - resets context


redo

public void redo()
redoes command execution