public class AssociateGrammarCommand extends AbstractDOMDocumentCommandHandler
ExecuteCommandParams must be filled with 3
parameters:
| Modifier and Type | Class and Description |
|---|---|
static class |
AssociateGrammarCommand.GrammarBindingType |
static class |
AssociateGrammarCommand.UnknownBindingTypeException |
| Modifier and Type | Field and Description |
|---|---|
static String |
COMMAND_ID |
| Constructor and Description |
|---|
AssociateGrammarCommand(IXMLDocumentProvider documentProvider) |
| Modifier and Type | Method and Description |
|---|---|
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 AssociateGrammarCommand(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 callerCopyright © 2022. All rights reserved.