vocleditor.commands
Class EditLetExpCommand

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

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

Command class for edit the properties of a boolean expression.

Author:
bjoern

Constructor Summary
EditLetExpCommand(VOCLModel.LetExp letexp)
          creates a new EditLetExpCommand
 
Method Summary
 void execute()
          execute this command
 void redo()
          Redo command execution.
 void setCommandAttributes(boolean isHorizontal, int splitPercentage, VOCLModel.VariableDeclaration varDecl, boolean isNegated)
          sets the new letexp 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

EditLetExpCommand

public EditLetExpCommand(VOCLModel.LetExp letexp)
creates a new EditLetExpCommand

Parameters:
letexp - the letexp to be altered
Method Detail

setCommandAttributes

public void setCommandAttributes(boolean isHorizontal,
                                 int splitPercentage,
                                 VOCLModel.VariableDeclaration varDecl,
                                 boolean isNegated)
sets the new letexp attributes to be set in this commmand

Parameters:
isHorizontal - the new split horizontal flag
splitPercentage - the split percentage
varDecl - the VariableDeclaration of this LetExp
isNegated - indicating whether to negate the expression

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