Class CheckBoundGrammarCommand
java.lang.Object
org.eclipse.lemminx.services.extensions.commands.AbstractDOMDocumentCommandHandler
org.eclipse.lemminx.extensions.contentmodel.commands.CheckBoundGrammarCommand
- All Implemented Interfaces:
IXMLCommandService.IDelegateCommandHandler
XML Command "xml.check.bound.grammar" to verify if an XML document already
has a bound grammar/schema, opened from the command palette.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancanBindWithGrammar(DOMDocument document) Returns true if the given DOM document can be bound with a given grammar and false otherwise.protected 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
-
CheckBoundGrammarCommand
-
-
Method Details
-
canBindWithGrammar
Returns true if the given DOM document can be bound with a given grammar and false otherwise.- Parameters:
document- the DOM document.- Returns:
- true if the given DOM document can be bound with a given grammar and false otherwise.