Interface IXMLCommandService.IDelegateCommandHandler
-
- All Known Implementing Classes:
AbstractDOMDocumentCommandHandler,AssociateGrammarCommand,CheckBoundGrammarCommand,CheckFilePatternCommand,SurroundWithCommand,XMLValidationAllFilesCommand,XMLValidationFileCommand
- Enclosing interface:
- IXMLCommandService
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public static interface IXMLCommandService.IDelegateCommandHandler
Command handler to register with the workspace service
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectexecuteCommand(org.eclipse.lsp4j.ExecuteCommandParams params, SharedSettings sharedSettings, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)Executes a command
-
-
-
Method Detail
-
executeCommand
Object executeCommand(org.eclipse.lsp4j.ExecuteCommandParams params, SharedSettings sharedSettings, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) throws Exception
Executes a command- Parameters:
params- command execution parameterssharedSettings- the shared settings.cancelChecker- check if cancel has been requested- Returns:
- the result of the command
- Throws:
Exception- the unhandled exception will be wrapped inorg.eclipse.lsp4j.jsonrpc.ResponseErrorExceptionand be wired back to the JSON-RPC protocol caller
-
-