Interface IXMLCommandService.IDelegateCommandHandler

All Known Implementing Classes:
AbstractDOMDocumentCommandHandler, AddCatalogEntryCommand, AssociateGrammarCommand, CheckBoundGrammarCommand, CheckFilePatternCommand, CreateCatalogCommand, GenerateGrammarFromXMLCommand, GenerateXMLFromGrammarCommand, ListBindableCatalogEntriesCommand, ListRootElementsCommand, MinifyDocumentCommand, 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

    Modifier and Type
    Method
    Description
    executeCommand(org.eclipse.lsp4j.ExecuteCommandParams params, SharedSettings sharedSettings, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)
    Executes a command.
  • Method Details

    • executeCommand

      Object executeCommand(org.eclipse.lsp4j.ExecuteCommandParams params, SharedSettings sharedSettings, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) throws Exception
      Executes a command. The return value can be either a direct result object, or a CompletableFuture for asynchronous commands (e.g. when downloading a remote resource). When a CompletableFuture is returned, the framework will resolve it before sending the response to the client.
      Parameters:
      params - command execution parameters
      sharedSettings - the shared settings.
      cancelChecker - check if cancel has been requested
      Returns:
      the result of the command, or a CompletableFuture that resolves to the result for async commands
      Throws:
      Exception - the unhandled exception will be wrapped in org.eclipse.lsp4j.jsonrpc.ResponseErrorException and be wired back to the JSON-RPC protocol caller