public class XMLValidationFileCommand extends AbstractDOMDocumentCommandHandler
Modifier and Type | Field and Description |
---|---|
static String |
COMMAND_ID |
Constructor and Description |
---|
XMLValidationFileCommand(ContentModelManager contentModelManager,
IXMLDocumentProvider documentProvider,
IXMLValidationService validationService) |
Modifier and Type | Method and Description |
---|---|
protected Object |
executeCommand(DOMDocument document,
org.eclipse.lsp4j.ExecuteCommandParams params,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)
Executes a command
|
executeCommand
public static final String COMMAND_ID
public XMLValidationFileCommand(ContentModelManager contentModelManager, IXMLDocumentProvider documentProvider, IXMLValidationService validationService)
protected Object executeCommand(DOMDocument document, org.eclipse.lsp4j.ExecuteCommandParams params, 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 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.