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
|
executeCommandpublic 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
AbstractDOMDocumentCommandHandlerexecuteCommand in class AbstractDOMDocumentCommandHandlerdocument - 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 © 2023. All rights reserved.