|
Modelers | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.gef.commands.Command
org.topcased.modeler.commands.ChangeLabelTextCommand
public class ChangeLabelTextCommand
This is a command called to change the text of a Label linked with an EStructuralFeature of an EObject
| Constructor Summary | |
|---|---|
ChangeLabelTextCommand(EObject eObj,
EStructuralFeature feat)
The Constructor |
|
| Method Summary | |
|---|---|
boolean |
canExecute()
|
void |
execute()
|
void |
redo()
|
void |
setName(java.lang.String newName)
Sets the new Column name |
void |
setOldName(java.lang.String string)
Sets the old Column name |
void |
undo()
|
| Methods inherited from class org.eclipse.gef.commands.Command |
|---|
canUndo, chain, dispose, getDebugLabel, getLabel, setDebugLabel, setLabel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChangeLabelTextCommand(EObject eObj,
EStructuralFeature feat)
eObj - the model objectfeat - the feature of the model object| Method Detail |
|---|
public void execute()
execute in class org.eclipse.gef.commands.CommandCommand.execute()public boolean canExecute()
canExecute in class org.eclipse.gef.commands.CommandCommand.canExecute()public void setName(java.lang.String newName)
newName - the new namepublic void setOldName(java.lang.String string)
string - the old namepublic void redo()
redo in class org.eclipse.gef.commands.CommandCommand.redo()public void undo()
undo in class org.eclipse.gef.commands.CommandCommand.undo()
|
Modelers | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.