Class XMLExtensionsRegistry
java.lang.Object
org.eclipse.lemminx.services.extensions.XMLExtensionsRegistry
- All Implemented Interfaces:
IComponentProvider
- Direct Known Subclasses:
XMLLanguageService
XML extensions registry.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Unregisters all registered extensions.voiddoSave(ISaveContext saveContext) Returns the LS command service<T> TgetComponent(Class clazz) Returns the component class instance from the given class and null otherwise.Return the registered document lifecycle participants.Returns the XML Document provider and null otherwise.Returns the notification serviceReturns the XML document validation serviceReturn the registered workspace service participants.voidvoidinitializeParams(org.eclipse.lsp4j.InitializeParams params) voidregisterCodeActionParticipant(ICodeActionParticipant codeActionsParticipant) voidregisterCodeLensParticipant(ICodeLensParticipant codeLensParticipant) voidregisterCompletionParticipant(ICompletionParticipant completionParticipant) voidregisterComponent(Object component) voidregisterDefinitionParticipant(IDefinitionParticipant definitionParticipant) voidregisterDiagnosticsParticipant(IDiagnosticsParticipant diagnosticsParticipant) voidregisterDocumentColorParticipant(IDocumentColorParticipant documentColorParticipant) voidregisterDocumentLifecycleParticipant(IDocumentLifecycleParticipant documentLifecycleParticipant) Register a new document lifecycle participantvoidregisterDocumentLinkParticipant(IDocumentLinkParticipant documentLinkParticipant) voidregisterFormatterParticipant(IFormatterParticipant formatterParticipant) voidregisterHighlightingParticipant(IHighlightingParticipant highlightingParticipant) voidregisterHoverParticipant(IHoverParticipant hoverParticipant) voidregisterLinkedEditingRangesParticipants(ILinkedEditingRangesParticipant linkedEditingRangesParticipant) voidregisterReferenceParticipant(IReferenceParticipant referenceParticipant) voidregisterRenameParticipant(IRenameParticipant renameParticipant) voidregisterSymbolsProviderParticipant(ISymbolsProviderParticipant symbolsProviderParticipant) voidregisterTypeDefinitionParticipant(ITypeDefinitionParticipant typeDefinitionParticipant) voidregisterWorkspaceServiceParticipant(IWorkspaceServiceParticipant workspaceServiceParticipant) Register a new workspace service participantvoidsetCommandService(IXMLCommandService commandService) Sets the LS command servicevoidsetDocumentProvider(IXMLDocumentProvider documentProvider) Set the XML Document providervoidsetNotificationService(IXMLNotificationService notificationService) Sets the notification servicevoidsetTelemetryManager(TelemetryManager telemetryManager) voidsetValidationService(IXMLValidationService validationService) Sets the XML document validation servicevoidunregisterCodeActionParticipant(ICodeActionParticipant codeActionsParticipant) voidunregisterCodeLensParticipant(ICodeLensParticipant codeLensParticipant) voidunregisterCompletionParticipant(ICompletionParticipant completionParticipant) voidunregisterDefinitionParticipant(IDefinitionParticipant definitionParticipant) voidunregisterDiagnosticsParticipant(IDiagnosticsParticipant diagnosticsParticipant) voidunregisterDocumentColorParticipant(IDocumentColorParticipant documentColorParticipant) voidunregisterDocumentLifecycleParticipant(IDocumentLifecycleParticipant documentLifecycleParticipant) Unregister a new document lifecycle participant.voidunregisterDocumentLinkParticipant(IDocumentLinkParticipant documentLinkParticipant) voidunregisterFormatterParticipant(IFormatterParticipant formatterParticipant) voidunregisterHighlightingParticipant(IHighlightingParticipant highlightingParticipant) voidunregisterHoverParticipant(IHoverParticipant hoverParticipant) voidunregisterLinkedEditingRangesParticipants(ILinkedEditingRangesParticipant linkedEditingRangesParticipant) voidunregisterReferenceParticipant(IReferenceParticipant referenceParticipant) voidunregisterRenameParticipant(IRenameParticipant renameParticipant) voidunregisterSymbolsProviderParticipant(ISymbolsProviderParticipant symbolsProviderParticipant) voidunregisterTypeDefinitionParticipant(ITypeDefinitionParticipant typeDefinitionParticipant) voidunregisterWorkspaceServiceParticipant(IWorkspaceServiceParticipant workspaceServiceParticipant) Unregister a new workspace service participant.
-
Constructor Details
-
XMLExtensionsRegistry
public XMLExtensionsRegistry()
-
-
Method Details
-
registerComponent
-
getComponent
Description copied from interface:IComponentProviderReturns the component class instance from the given class and null otherwise.- Specified by:
getComponentin interfaceIComponentProvider- Parameters:
clazz- class of the component.- Returns:
- the component class instance from the given class and null otherwise.
-
initializeParams
public void initializeParams(org.eclipse.lsp4j.InitializeParams params) -
doSave
-
getExtensions
-
getCompletionParticipants
-
getHoverParticipants
-
getDiagnosticsParticipants
-
getCodeActionsParticipants
-
getDocumentLinkParticipants
-
getDocumentColorParticipants
-
getDefinitionParticipants
-
getTypeDefinitionParticipants
-
getReferenceParticipants
-
getCodeLensParticipants
-
getHighlightingParticipants
-
getRenameParticipants
-
getLinkedEditingRangesParticipants
-
getFormatterParticipants
-
getSymbolsProviderParticipants
-
getWorkspaceServiceParticipants
Return the registered workspace service participants.- Returns:
- the registered workspace service participants.
- Since:
- 0.14.2
-
getDocumentLifecycleParticipants
Return the registered document lifecycle participants.- Returns:
- the registered document lifecycle participants.
- Since:
- 0.18.0
-
initializeIfNeeded
public void initializeIfNeeded() -
dispose
public void dispose()Unregisters all registered extensions. -
registerCompletionParticipant
-
unregisterCompletionParticipant
-
registerHoverParticipant
-
unregisterHoverParticipant
-
registerDiagnosticsParticipant
-
unregisterDiagnosticsParticipant
-
registerCodeActionParticipant
-
unregisterCodeActionParticipant
-
registerDocumentLinkParticipant
-
unregisterDocumentLinkParticipant
-
registerDocumentColorParticipant
-
unregisterDocumentColorParticipant
-
registerDefinitionParticipant
-
unregisterDefinitionParticipant
-
registerTypeDefinitionParticipant
-
unregisterTypeDefinitionParticipant
public void unregisterTypeDefinitionParticipant(ITypeDefinitionParticipant typeDefinitionParticipant) -
registerReferenceParticipant
-
unregisterReferenceParticipant
-
registerCodeLensParticipant
-
unregisterCodeLensParticipant
-
registerHighlightingParticipant
-
unregisterHighlightingParticipant
-
registerRenameParticipant
-
unregisterRenameParticipant
-
registerLinkedEditingRangesParticipants
public void registerLinkedEditingRangesParticipants(ILinkedEditingRangesParticipant linkedEditingRangesParticipant) -
unregisterLinkedEditingRangesParticipants
public void unregisterLinkedEditingRangesParticipants(ILinkedEditingRangesParticipant linkedEditingRangesParticipant) -
registerFormatterParticipant
-
unregisterFormatterParticipant
-
registerSymbolsProviderParticipant
public void registerSymbolsProviderParticipant(ISymbolsProviderParticipant symbolsProviderParticipant) -
unregisterSymbolsProviderParticipant
public void unregisterSymbolsProviderParticipant(ISymbolsProviderParticipant symbolsProviderParticipant) -
registerWorkspaceServiceParticipant
public void registerWorkspaceServiceParticipant(IWorkspaceServiceParticipant workspaceServiceParticipant) Register a new workspace service participant- Parameters:
workspaceServiceParticipant- the participant to register- Since:
- 0.14.2
-
unregisterWorkspaceServiceParticipant
public void unregisterWorkspaceServiceParticipant(IWorkspaceServiceParticipant workspaceServiceParticipant) Unregister a new workspace service participant.- Parameters:
workspaceServiceParticipant- the participant to unregister- Since:
- 0.14.2
-
registerDocumentLifecycleParticipant
public void registerDocumentLifecycleParticipant(IDocumentLifecycleParticipant documentLifecycleParticipant) Register a new document lifecycle participant- Parameters:
documentLifecycleParticipant- the participant to register- Since:
- 0.18.0
-
unregisterDocumentLifecycleParticipant
public void unregisterDocumentLifecycleParticipant(IDocumentLifecycleParticipant documentLifecycleParticipant) Unregister a new document lifecycle participant.- Parameters:
documentLifecycleParticipant- the participant to unregister- Since:
- 0.18.0
-
getDocumentProvider
Returns the XML Document provider and null otherwise.- Returns:
- the XML Document provider and null otherwise.
-
setDocumentProvider
Set the XML Document provider- Parameters:
documentProvider- XML Document provider
-
getResolverExtensionManager
-
getNotificationService
Returns the notification service- Returns:
- the notification service
-
setNotificationService
Sets the notification service- Parameters:
notificationService- the new notification service
-
getValidationService
Returns the XML document validation service- Returns:
- the validation service
-
setValidationService
Sets the XML document validation service- Parameters:
validationService-
-
getCommandService
Returns the LS command service- Returns:
- the command service
-
setCommandService
Sets the LS command service- Parameters:
commandService-
-
getTelemetryManager
-
setTelemetryManager
-