|
||||||||||
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.EditConditionCommand
public class EditConditionCommand
Constructor Summary | |
---|---|
EditConditionCommand()
The constructor. |
Method Summary | |
---|---|
void |
execute()
Executes the command. |
void |
redo()
Redo command execution. |
void |
setCommandAttributes(java.lang.String op,
java.lang.String value,
VOCLModel.VariableDeclaration left,
VOCLModel.VariableDeclaration right,
boolean leftPre,
boolean rightPre)
Sets the command attributes. |
void |
setCondition(VOCLModel.Condition condition)
Sets the condition. |
void |
setLeft(VOCLModel.VariableDeclaration left)
Sets the left variable. |
void |
setLeftPre(boolean leftPre)
Sets the left pre. |
void |
setOp(java.lang.String op)
Sets the operation. |
void |
setRight(VOCLModel.VariableDeclaration right)
Sets the right variable. |
void |
setRightPre(boolean rightPre)
Sets the rigth pre. |
void |
setValue(java.lang.String value)
Sets the value. |
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 EditConditionCommand()
Method Detail |
---|
public void setCondition(VOCLModel.Condition condition)
condition
- the conditionpublic void execute()
execute
in class org.eclipse.gef.commands.Command
public void undo()
undo
in class org.eclipse.gef.commands.Command
public void redo()
redo
in class org.eclipse.gef.commands.Command
public void setOp(java.lang.String op)
op
- the operation setpublic void setValue(java.lang.String value)
value
- the value to setpublic void setRight(VOCLModel.VariableDeclaration right)
right
- the right variablepublic void setLeft(VOCLModel.VariableDeclaration left)
left
- the left variablepublic void setLeftPre(boolean leftPre)
leftPre
- the left prepublic void setRightPre(boolean rightPre)
rightPre
- the right prepublic void setCommandAttributes(java.lang.String op, java.lang.String value, VOCLModel.VariableDeclaration left, VOCLModel.VariableDeclaration right, boolean leftPre, boolean rightPre)
op
- the operation.value
- the valueleft
- the left variableright
- the right variable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |