Class AuthorDocumentModelContextManager


  • @API(type=NOT_EXTENDABLE,
         src=PUBLIC)
    public class AuthorDocumentModelContextManager
    extends java.lang.Object
    A helper class that handles the current editing context. In Oxygen there are many 'per editing session' (e.g. the DITA map) or 'per user' options (e.g. the reviewer name). This manager installs the context which contains the values of these options for the currently edited document on the current thread.
    Since:
    16.0
    • Constructor Detail

      • AuthorDocumentModelContextManager

        public AuthorDocumentModelContextManager()
    • Method Detail

      • installContext

        public static void installContext​(AuthorDocumentModel documentModel)
        Sets the specified document model as being edited on the current thread.
        Parameters:
        documentModel - The document model to set as being edited on the current thread.
      • uninstallContext

        public static void uninstallContext​(AuthorDocumentModel documentModel)
        Sets the specified document model as not being edited anymore on the current thread.
        Parameters:
        documentModel - The document model.