uk.ac.kcl.cch.jb.pliny.commands
Class NoteTextUpdateCommand

java.lang.Object
  extended byorg.eclipse.gef.commands.Command
      extended byuk.ac.kcl.cch.jb.pliny.commands.NoteTextUpdateCommand

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

replaces the content of a Note ( NoteLucened) with new text.

Author:
John Bradley

Constructor Summary
NoteTextUpdateCommand(NoteLucened note, String text)
          creates an instance of this command and shows that it applies to the given note.
 
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

NoteTextUpdateCommand

public NoteTextUpdateCommand(NoteLucened note,
                             String text)
creates an instance of this command and shows that it applies to the given note. The new content text is provided.

Parameters:
note - note which needs to have its context text updated.
text - String of text which is the new content.
Method Detail

execute

public void execute()

undo

public void undo()