|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.gef.commands.Command uk.ac.kcl.cch.jb.pliny.commands.UpdateNameCommand
command to change the name of any object that has a name. This command is used in the Resource Explorer and NoteSearchView.
Constructor Summary | |
UpdateNameCommand(org.eclipse.jface.viewers.TreeViewer theViewer,
INamedObject object,
String newText)
creates an instance of this command that will change the name of object to the given new name, and refresh
the TreeViewer so that it displays the new name. |
Method Summary | |
void |
execute()
|
void |
undo()
|
Methods inherited from class org.eclipse.gef.commands.Command |
canExecute, canUndo, chain, dispose, getDebugLabel, getLabel, redo, setDebugLabel, setLabel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public UpdateNameCommand(org.eclipse.jface.viewers.TreeViewer theViewer, INamedObject object, String newText)
object
to the given new name, and refresh
the TreeViewer so that it displays the new name.
theViewer
- TreeViewer to be refreshed after new name is set.object
- INamedObject object to be named.newText
- String new name to use.INamedObject
Method Detail |
public void execute()
public void undo()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |