|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gef.commands.Command
pl.edu.agh.cast.backward.command.RenameDiagramCommand
public class RenameDiagramCommand
Command to rename a diagram.
Constructor Summary | |
---|---|
RenameDiagramCommand(IDiagram diagram,
String newName)
Creates new instance of the diagram rename command. |
Method Summary | |
---|---|
void |
execute()
|
String |
getLabel()
|
void |
undo()
|
Methods inherited from class org.eclipse.gef.commands.Command |
---|
canExecute, canUndo, chain, dispose, getDebugLabel, redo, setDebugLabel, setLabel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RenameDiagramCommand(IDiagram diagram, String newName)
diagram
- the diagram to renamenewName
- the new name of the diagramMethod Detail |
---|
public void execute()
execute
in class org.eclipse.gef.commands.Command
Command.execute()
public void undo()
undo
in class org.eclipse.gef.commands.Command
Command.undo()
public String getLabel()
getLabel
in class org.eclipse.gef.commands.Command
Command.getLabel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |