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,
SharedSettings sharedSettings,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)
Executes a command
|
Object |
executeCommand(org.eclipse.lsp4j.ExecuteCommandParams params,
SharedSettings sharedSettings,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)
Executes a command
|
public AbstractDOMDocumentCommandHandler(IXMLDocumentProvider documentProvider)
public final Object executeCommand(org.eclipse.lsp4j.ExecuteCommandParams params, SharedSettings sharedSettings, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) throws Exception
IXMLCommandService.IDelegateCommandHandlerexecuteCommand in interface IXMLCommandService.IDelegateCommandHandlerparams - command execution parameterssharedSettings - the shared settings.cancelChecker - 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, SharedSettings sharedSettings, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) throws Exception
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 callerCopyright © 2022. All rights reserved.