vocleditor.commands
Class EditBoolExpCommand

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

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

Command class for edit the properties of a boolean expression.

Author:
bjoern

Constructor Summary
EditBoolExpCommand(VOCLModel.BoolExp boolexp)
          creates a new EditBoolExpCommand
 
Method Summary
 void execute()
          execute this command
 void redo()
          Redo command execution.
 void setCommandAttributes(VOCLModel.BoolOperation operation, boolean isHorizontal, int splitPercentage, boolean isNegated)
          sets the new boolexp attributes to be set in this commmand
 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

EditBoolExpCommand

public EditBoolExpCommand(VOCLModel.BoolExp boolexp)
creates a new EditBoolExpCommand

Parameters:
boolexp - the boolexp to be altered
Method Detail

setCommandAttributes

public void setCommandAttributes(VOCLModel.BoolOperation operation,
                                 boolean isHorizontal,
                                 int splitPercentage,
                                 boolean isNegated)
sets the new boolexp attributes to be set in this commmand

Parameters:
operation - the new boolean operation kind
isHorizontal - the new split horizontal flag

execute

public void execute()
execute this 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