vocleditor.commands
Class DeleteConditionCommand

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

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

Author:
manaljav Command for deleting a condition.

Constructor Summary
DeleteConditionCommand()
          Creates a new DeleteConditionCommand.
 
Method Summary
 void execute()
          Entry point for command execution.
 void redo()
          Redo command execution.
 void setCondition(VOCLModel.Condition condition)
          Sets the condition to be deleted
 void setParent(VOCLModel.NavExp newParent)
          Sets the parent constraint.
 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

DeleteConditionCommand

public DeleteConditionCommand()
Creates a new DeleteConditionCommand.

Method Detail

setCondition

public void setCondition(VOCLModel.Condition condition)
Sets the condition to be deleted

Parameters:
condition - condition to be deleted

setParent

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

Parameters:
newParent - the parent to set

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