Class FeatureElementsAddedUndoableEdit

  • All Implemented Interfaces:
    java.io.Serializable, javax.swing.undo.UndoableEdit

    public class FeatureElementsAddedUndoableEdit
    extends NFEAtomicUndoableEdit
    Atomic undoable edit implementation that performs the undo/redo actions when one or more feature elements are added to the model
    See Also:
    Serialized Form
    • Constructor Detail

      • FeatureElementsAddedUndoableEdit

        public FeatureElementsAddedUndoableEdit​(NFEModel model,
                                                java.util.Collection<NFEFeatureElement> featureElementsList)
      • FeatureElementsAddedUndoableEdit

        public FeatureElementsAddedUndoableEdit​(NFEModel model,
                                                NFEFeatureElement featureElement)
    • Method Detail

      • undo

        public void undo()
                  throws javax.swing.undo.CannotUndoException
        Specified by:
        undo in interface javax.swing.undo.UndoableEdit
        Overrides:
        undo in class javax.swing.undo.AbstractUndoableEdit
        Throws:
        javax.swing.undo.CannotUndoException
      • redo

        public void redo()
                  throws javax.swing.undo.CannotRedoException
        Specified by:
        redo in interface javax.swing.undo.UndoableEdit
        Overrides:
        redo in class javax.swing.undo.AbstractUndoableEdit
        Throws:
        javax.swing.undo.CannotRedoException