|
||||||||||
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.EditMethodCommand
public class EditMethodCommand
Constructor Summary | |
---|---|
EditMethodCommand()
The default constructor. |
Method Summary | |
---|---|
void |
execute()
Executes the command. |
void |
redo()
Redo command execution. |
void |
setChangedParameters(java.util.Hashtable changedParameters)
Sets the the hashtable of changed parameters. |
void |
setCommandAttributes(java.lang.String name,
java.lang.String returnType,
java.lang.String returnVarNameNew,
java.util.Hashtable changedParameters,
java.util.List parameters)
Sets the command attributes. |
void |
setMethod(VOCLModel.Method method)
Sets the method. |
void |
setName(java.lang.String name)
Sets the method name. |
void |
setParameters(java.util.List parameters)
Sets the parameter list. |
void |
setReturnType(java.lang.String type)
Sets the method return type. |
void |
setReturnVariableName(java.lang.String returnVariableName)
Sets the return variable's name. |
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 EditMethodCommand()
Method Detail |
---|
public void setMethod(VOCLModel.Method method)
method
- the method to set.public 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 setName(java.lang.String name)
name
- the method name to setpublic void setReturnType(java.lang.String type)
type
- the method return type to setpublic void setReturnVariableName(java.lang.String returnVariableName)
returnVariableName
- the new name of the return variablepublic void setParameters(java.util.List parameters)
parameters
- the parameters list to setpublic void setChangedParameters(java.util.Hashtable changedParameters)
changedParameters
- the hashtable of changed parameters.public void setCommandAttributes(java.lang.String name, java.lang.String returnType, java.lang.String returnVarNameNew, java.util.Hashtable changedParameters, java.util.List parameters)
name
- the methodreturnType
- the return variable's typereturnVarNameNew
- the new return variable's namechangedParameters
- the list of changed parametersparameters
- the parameter list
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |