Class FeatureElementsRemovedUndoableEdit

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

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

      • FeatureElementsRemovedUndoableEdit

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

        public FeatureElementsRemovedUndoableEdit​(NFEModel model,
                                                  NFEFeatureElement featureElement)
    • 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