templates.diagram.actions
Class AbstractDiagramUndoableEdit

java.lang.Object
  extended by javax.swing.undo.AbstractUndoableEdit
      extended by templates.diagram.actions.AbstractDiagramUndoableEdit
All Implemented Interfaces:
java.io.Serializable, javax.swing.undo.UndoableEdit
Direct Known Subclasses:
DiagramUndoableEdits.AddLinkEdit, DiagramUndoableEdits.AssignFSAEdit, DiagramUndoableEdits.CreateConnectorEdit, DiagramUndoableEdits.CreateEntityEdit, DiagramUndoableEdits.LabelEntityEdit, DiagramUndoableEdits.MovedSelectionEdit, DiagramUndoableEdits.RemoveConnectorEdit, DiagramUndoableEdits.RemoveEntityEdit, DiagramUndoableEdits.RemoveLinkEdit, DiagramUndoableEdits.SetControllabilityEdit, DiagramUndoableEdits.SetIconEdit, DiagramUndoableEdits.SetTypeEdit, DiagramUndoableEdits.TranslateDiagramEdit

public abstract class AbstractDiagramUndoableEdit
extends javax.swing.undo.AbstractUndoableEdit

Provides functionality common to all undoable edits of TemplateDiagrams.

Author:
Lenko Grigorov
See Also:
Serialized Form

Field Summary
protected  boolean usePluralDescription
          Specifies if the user-readable description of the undoable edit should use the plural form.
 
Fields inherited from class javax.swing.undo.AbstractUndoableEdit
RedoName, UndoName
 
Constructor Summary
AbstractDiagramUndoableEdit()
           
 
Method Summary
 void setLastOfMultiple(boolean b)
          Specify if the undoable edit is the last one of a multiple similar edits, in effect specifying if the the plural form of the user-readable description should be used.
 
Methods inherited from class javax.swing.undo.AbstractUndoableEdit
addEdit, canRedo, canUndo, die, getPresentationName, getRedoPresentationName, getUndoPresentationName, isSignificant, redo, replaceEdit, toString, undo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

usePluralDescription

protected boolean usePluralDescription
Specifies if the user-readable description of the undoable edit should use the plural form.

Constructor Detail

AbstractDiagramUndoableEdit

public AbstractDiagramUndoableEdit()
Method Detail

setLastOfMultiple

public void setLastOfMultiple(boolean b)
Specify if the undoable edit is the last one of a multiple similar edits, in effect specifying if the the plural form of the user-readable description should be used.

Parameters:
b - true if this is the last undoable edit of a multiple and the plural form of the user-readable description has to be used; otherwise false