Interface IXMLExtension

All Known Implementing Classes:
ContentModelPlugin, DTDPlugin, EntitiesPlugin, FileContentGeneratorPlugin, FilePathPlugin, MinifyPlugin, PrologPlugin, RelaxNGPlugin, WorkspaceIndexPlugin, XIncludePlugin, XMLCatalogPlugin, XMLColorsPlugin, XMLCorePlugin, XMLModelPlugin, XMLReferencesPlugin, XSDPlugin, XSISchemaPlugin, XSLPlugin

public interface IXMLExtension
XML extension.
  • Method Details

    • start

      void start(org.eclipse.lsp4j.InitializeParams params, XMLExtensionsRegistry registry)
      Start method to register participants like ICompletionParticipant, IHoverParticipant, IDiagnosticsParticipant in the given registry.
      Parameters:
      params -
      registry -
      settings -
    • stop

      void stop(XMLExtensionsRegistry registry)
      Stop method to un-register participants like ICompletionParticipant, IHoverParticipant, IDiagnosticsParticipant in the given registry.
      Parameters:
      registry -
    • initialized

      default void initialized(org.eclipse.lsp4j.InitializedParams params, XMLExtensionsRegistry registry)
      Called once the LSP client has sent the initialized notification, meaning the client is fully ready. Extensions that need to trigger background work (e.g. a workspace scan) after the LSP handshake should override this.
      Parameters:
      params - the initialized notification params (usually empty)
      registry - the extensions registry
    • doSave

      default void doSave(ISaveContext context)
      Called when the Settings or a Document have been saved. context.getType() can be used to determine what type was saved. doSave is called on extension start up with a settings context to provide the xml settings to the extension.
      Parameters:
      context -