pl.edu.agh.cast.command
Class RenameDiagramCommand

java.lang.Object
  extended by org.eclipse.gef.commands.Command
      extended by pl.edu.agh.cast.command.RenameDiagramCommand

public class RenameDiagramCommand
extends org.eclipse.gef.commands.Command

Command to rename a diagram

Author:
awos

Constructor Summary
RenameDiagramCommand(IDiagram diagram, java.lang.String newName)
           
 
Method Summary
 void execute()
           
 java.lang.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

RenameDiagramCommand

public RenameDiagramCommand(IDiagram diagram,
                            java.lang.String newName)
Method Detail

execute

public void execute()
Overrides:
execute in class org.eclipse.gef.commands.Command

undo

public void undo()
Overrides:
undo in class org.eclipse.gef.commands.Command

getLabel

public java.lang.String getLabel()
Overrides:
getLabel in class org.eclipse.gef.commands.Command


Copyright © 2007-2008 AGH University of Science and Technology. All Rights Reserved.