templates.diagram.actions
Class DiagramUndoableEdits.UndoableDummyLabel

java.lang.Object
  extended by javax.swing.undo.AbstractUndoableEdit
      extended by templates.diagram.actions.DiagramUndoableEdits.UndoableDummyLabel
All Implemented Interfaces:
java.io.Serializable, javax.swing.undo.UndoableEdit
Enclosing class:
DiagramUndoableEdits

public static class DiagramUndoableEdits.UndoableDummyLabel
extends javax.swing.undo.AbstractUndoableEdit

Dummy edit which only serves to label a CompoundEdit with a specific user-readable description.

Author:
Lenko Grigorov
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.undo.AbstractUndoableEdit
RedoName, UndoName
 
Constructor Summary
DiagramUndoableEdits.UndoableDummyLabel(java.lang.String label)
          Constructs an edit with the given parameters.
 
Method Summary
 java.lang.String getPresentationName()
          Returns the name that should be displayed besides the Undo/Redo menu items, so the user knows which action will be undone/redone.
 
Methods inherited from class javax.swing.undo.AbstractUndoableEdit
addEdit, canRedo, canUndo, die, getRedoPresentationName, getUndoPresentationName, isSignificant, redo, replaceEdit, toString, undo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DiagramUndoableEdits.UndoableDummyLabel

public DiagramUndoableEdits.UndoableDummyLabel(java.lang.String label)
Constructs an edit with the given parameters.

Parameters:
label - the label to be shown to the user
Method Detail

getPresentationName

public java.lang.String getPresentationName()
Returns the name that should be displayed besides the Undo/Redo menu items, so the user knows which action will be undone/redone.

Specified by:
getPresentationName in interface javax.swing.undo.UndoableEdit
Overrides:
getPresentationName in class javax.swing.undo.AbstractUndoableEdit