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 Summary
Modifier and TypeMethodDescriptiondefault voiddoSave(ISaveContext context) Called when the Settings or a Document have been saved.default voidinitialized(org.eclipse.lsp4j.InitializedParams params, XMLExtensionsRegistry registry) Called once the LSP client has sent theinitializednotification, meaning the client is fully ready.voidstart(org.eclipse.lsp4j.InitializeParams params, XMLExtensionsRegistry registry) Start method to register participants likeICompletionParticipant,IHoverParticipant,IDiagnosticsParticipantin the given registry.voidstop(XMLExtensionsRegistry registry) Stop method to un-register participants likeICompletionParticipant,IHoverParticipant,IDiagnosticsParticipantin the given registry.
-
Method Details
-
start
Start method to register participants likeICompletionParticipant,IHoverParticipant,IDiagnosticsParticipantin the given registry.- Parameters:
params-registry-settings-
-
stop
Stop method to un-register participants likeICompletionParticipant,IHoverParticipant,IDiagnosticsParticipantin the given registry.- Parameters:
registry-
-
initialized
default void initialized(org.eclipse.lsp4j.InitializedParams params, XMLExtensionsRegistry registry) Called once the LSP client has sent theinitializednotification, 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
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-
-