vocleditor.commands
Class CreateLetExpCommand

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

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

Command for creating a boolean expression role.

Author:
bjoern

Constructor Summary
CreateLetExpCommand(VOCLModel.LetExp letexp, VOCLModel.NavExp parent)
          The default constructor.
 
Method Summary
 void execute()
          Entry point for command execution.
 VOCLModel.LetExp getLetExp()
          Returns the let expression.
 void redo()
          Redo command execution.
 void setCommandAttributes(boolean isHorizontal, int splitPercentage, boolean isNegated)
          Sets the command attributes.
 void setLocation(org.eclipse.draw2d.geometry.Point loc)
          Sets the location.
 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

CreateLetExpCommand

public CreateLetExpCommand(VOCLModel.LetExp letexp,
                           VOCLModel.NavExp parent)
The default constructor.

Method Detail

getLetExp

public VOCLModel.LetExp getLetExp()
Returns the let expression.

Returns:
the let expression

setCommandAttributes

public void setCommandAttributes(boolean isHorizontal,
                                 int splitPercentage,
                                 boolean isNegated)
Sets the command attributes.

Parameters:
isHorizontal - the horizontal flag
splitPercentage - the split percentage
isNegated - the flag shows the negation

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

setLocation

public void setLocation(org.eclipse.draw2d.geometry.Point loc)
Sets the location.

Parameters:
loc - the location to set