Class FeaturesRemovedUndoableEdit

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

    public class FeaturesRemovedUndoableEdit
    extends NFEAtomicUndoableEdit
    Atomic undoable edit implementation that performs the undo/redo actions when one or more features are removed from the model
    See Also:
    Serialized Form
    • Constructor Detail

      • FeaturesRemovedUndoableEdit

        public FeaturesRemovedUndoableEdit​(NFEModel model,
                                           java.util.Collection<NFEFeature> featuresList)
      • FeaturesRemovedUndoableEdit

        public FeaturesRemovedUndoableEdit​(NFEModel model,
                                           NFEFeature feature)
    • Method Detail

      • undo

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

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