public class CheckBoundGrammarCommand extends AbstractDOMDocumentCommandHandler
Modifier and Type | Field and Description |
---|---|
static String |
COMMAND_ID |
Constructor and Description |
---|
CheckBoundGrammarCommand(IXMLDocumentProvider documentProvider) |
Modifier and Type | Method and Description |
---|---|
static boolean |
canBindWithGrammar(DOMDocument document)
Returns true if the given DOM document can be bound with a given grammar and
false otherwise.
|
protected Object |
executeCommand(DOMDocument document,
org.eclipse.lsp4j.ExecuteCommandParams params,
SharedSettings sharedSettings,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)
Executes a command
|
executeCommand
public static final String COMMAND_ID
public CheckBoundGrammarCommand(IXMLDocumentProvider documentProvider)
protected Object executeCommand(DOMDocument document, org.eclipse.lsp4j.ExecuteCommandParams params, SharedSettings sharedSettings, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) throws Exception
AbstractDOMDocumentCommandHandler
executeCommand
in class AbstractDOMDocumentCommandHandler
document
- the DOM document retrieve by the
TextDocumentIdentifier
argument.params
- command execution parameterssharedSettings
- the shared settingscancelChecker
- check if cancel has been requestedException
- the unhandled exception will be wrapped in
org.eclipse.lsp4j.jsonrpc.ResponseErrorException
and be wired back to the JSON-RPC protocol callerpublic static boolean canBindWithGrammar(DOMDocument document)
document
- the DOM document.Copyright © 2021. All rights reserved.