public abstract class AbstractDOMDocumentCommandHandler extends Object implements IXMLCommandService.IDelegateCommandHandler
DOMDocument
filled in the first
argument of the command as TextDocumentIdentifier
.Constructor and Description |
---|
AbstractDOMDocumentCommandHandler(IXMLDocumentProvider documentProvider) |
Modifier and Type | Method and Description |
---|---|
protected abstract Object |
executeCommand(DOMDocument document,
org.eclipse.lsp4j.ExecuteCommandParams params,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)
Executes a command
|
Object |
executeCommand(org.eclipse.lsp4j.ExecuteCommandParams params,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)
Executes a command
|
public AbstractDOMDocumentCommandHandler(IXMLDocumentProvider documentProvider)
public final Object executeCommand(org.eclipse.lsp4j.ExecuteCommandParams params, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) throws Exception
IXMLCommandService.IDelegateCommandHandler
executeCommand
in interface IXMLCommandService.IDelegateCommandHandler
params
- command execution parameterscancelChecker
- 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 callerprotected abstract Object executeCommand(DOMDocument document, org.eclipse.lsp4j.ExecuteCommandParams params, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) throws Exception
document
- the DOM document retrieve by the
TextDocumentIdentifier
argument.params
- command execution parameterscancelChecker
- 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 © 2021. All rights reserved.