Interface WeaveCommand


  • public interface WeaveCommand
    A Command to be executed on the LSP.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String commandId()  
      java.lang.String description​(org.eclipse.lsp4j.ExecuteCommandParams params)
      This message is going to be presented to the user as information of what the command is running
      java.lang.Object execute​(org.eclipse.lsp4j.ExecuteCommandParams params)
      Executes the given command with the specified parameters
      java.lang.String name()  
    • Method Detail

      • commandId

        java.lang.String commandId()
        Returns:
        The id of the underlying command
      • name

        java.lang.String name()
        Returns:
        The name of the command
      • description

        java.lang.String description​(org.eclipse.lsp4j.ExecuteCommandParams params)
        This message is going to be presented to the user as information of what the command is running
        Parameters:
        params - The command parameters.
        Returns:
        A description of the current command is doing.
      • execute

        java.lang.Object execute​(org.eclipse.lsp4j.ExecuteCommandParams params)
        Executes the given command with the specified parameters
        Parameters:
        params - The command parameters
        Returns:
        The result of the executed command.