public class XMLReferencesPlugin extends Object implements IXMLExtension
To benefit with:
- completion support when @linkend value will be trigger
- go to the definition of MyId from the @linked attribute
the following xml references settings must be configured:
"xml.references": [
// references for docbook.xml files
{
"pattern": "*.xml",
"expressions": [
{
"from": "xref/@linkend",
"to": "@id"
}
]
}
]
| Constructor and Description |
|---|
XMLReferencesPlugin() |
| Modifier and Type | Method and Description |
|---|---|
void |
doSave(ISaveContext context)
Called when the Settings or a Document have been saved.
|
XMLReferencesSettings |
getReferencesSettings() |
void |
start(org.eclipse.lsp4j.InitializeParams params,
XMLExtensionsRegistry registry)
Start method to register participants like
ICompletionParticipant,
IHoverParticipant, IDiagnosticsParticipant in the given
registry. |
void |
stop(XMLExtensionsRegistry registry)
Stop method to un-register participants like
ICompletionParticipant,
IHoverParticipant, IDiagnosticsParticipant in the given
registry. |
public void doSave(ISaveContext context)
IXMLExtensiondoSave in interface IXMLExtensionpublic void start(org.eclipse.lsp4j.InitializeParams params,
XMLExtensionsRegistry registry)
IXMLExtensionICompletionParticipant,
IHoverParticipant, IDiagnosticsParticipant in the given
registry.start in interface IXMLExtensionpublic void stop(XMLExtensionsRegistry registry)
IXMLExtensionICompletionParticipant,
IHoverParticipant, IDiagnosticsParticipant in the given
registry.stop in interface IXMLExtensionpublic XMLReferencesSettings getReferencesSettings()
Copyright © 2024. All rights reserved.