|
||||||||||
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.DeleteMethodCommand
public class DeleteMethodCommand
Constructor Summary | |
---|---|
DeleteMethodCommand()
Creates a new DeleteMethodCommand. |
|
DeleteMethodCommand(boolean ignoreContext)
Creates a new DeleteMethodCommand which doesnt care for the context. |
Method Summary | |
---|---|
void |
execute()
Entry point for command execution. |
void |
redo()
Redo command execution. |
void |
setMethod(VOCLModel.Method method)
Sets the method to be deleted |
void |
setParent(VOCLModel.ClassifierRole parent)
Sets the ClassifierRole the method is to be deleted from |
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 DeleteMethodCommand()
public DeleteMethodCommand(boolean ignoreContext)
Method Detail |
---|
public void setMethod(VOCLModel.Method method)
method
- the method to be deletedpublic void setParent(VOCLModel.ClassifierRole parent)
parent
- ClassifierRole which owns the method to be deletedpublic 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |