Interface IContextReplacingOperation

  • All Known Implementing Classes:

    public interface IContextReplacingOperation
    IContextReplacingOperation defines an interface for undoable operations that can replace one undo context with another undo context. It is used by operations, such as composite operations, where removing and adding an undo context would not have the same semantic as replacing one undo context with another.
    • Method Detail

      • replaceContext

        void replaceContext​(IUndoContext original,
                            IUndoContext replacement)
        Replace the undo context of the receiver with the provided replacement undo context.

        This message has no effect if the original undo context is not present in the receiver.

        original - the undo context which is to be replaced
        replacement - the undo context which is replacing the original