|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gef.commands.Command
vocleditor.commands.CreateIfExpCommand
public class CreateIfExpCommand
Command for creating a boolean expression role.
Constructor Summary | |
---|---|
CreateIfExpCommand(VOCLModel.IfExp ifexp,
VOCLModel.NavExp parent)
Constructor. |
Method Summary | |
---|---|
void |
execute()
Entry point for command execution. |
VOCLModel.IfExp |
getIfExp()
Returns the if expression. |
void |
redo()
Redo command execution. |
void |
setCommandAttributes(boolean isHorizontal,
int splitPercentage1,
int splitPercentage2,
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 |
---|
public CreateIfExpCommand(VOCLModel.IfExp ifexp, VOCLModel.NavExp parent)
Method Detail |
---|
public VOCLModel.IfExp getIfExp()
public void setCommandAttributes(boolean isHorizontal, int splitPercentage1, int splitPercentage2, boolean isNegated)
isHorizontal
- the horizontal flagsplitPercentage1
- the split percentage 1splitPercentage2
- the split percentage 2isNegated
- the flag shows the negationpublic void execute()
execute
in class org.eclipse.gef.commands.Command
public void redo()
redo
in class org.eclipse.gef.commands.Command
public void undo()
undo
in class org.eclipse.gef.commands.Command
public void setLocation(org.eclipse.draw2d.geometry.Point loc)
loc
- the location to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |