Class AssociateGrammarCommand
java.lang.Object
org.eclipse.lemminx.services.extensions.commands.AbstractDOMDocumentCommandHandler
org.eclipse.lemminx.extensions.contentmodel.commands.AssociateGrammarCommand
- All Implemented Interfaces:
IXMLCommandService.IDelegateCommandHandler
XML Command "xml.associate.grammar.insert" to associate a grammar to a given
DOM document.
The command parameters
ExecuteCommandParams must be filled with 3
parameters:
- document URI (String) : the DOM document file URI to bind with a grammar.
- grammar URI (String) : the XSD, DTD file URI to bind with the DOM document.
- binding type (String) : which can takes values "standard", "xml-model" to know which binding type must be inserted in the DOM document.
- Author:
- Angelo ZERR
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectexecuteCommand(DOMDocument document, org.eclipse.lsp4j.ExecuteCommandParams params, SharedSettings sharedSettings, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Executes a commandMethods inherited from class org.eclipse.lemminx.services.extensions.commands.AbstractDOMDocumentCommandHandler
executeCommand
-
Field Details
-
COMMAND_ID
- See Also:
-
-
Constructor Details
-
AssociateGrammarCommand
-
-
Method Details