public class CommandUtil extends Object
Constructor and Description |
---|
CommandUtil() |
Modifier and Type | Method and Description |
---|---|
static org.eclipse.lsp4j.Command |
getAllDocGenerationCommand(String docUri)
Get the command for generate all documentation.
|
static List<org.eclipse.lsp4j.Command> |
getCommandsByDiagnostic(org.eclipse.lsp4j.Diagnostic diagnostic,
org.eclipse.lsp4j.CodeActionParams params,
LSPackageCache lsPackageCache)
Get the command instances for a given diagnostic.
|
static org.eclipse.lsp4j.Command |
getDocGenerationCommand(String nodeType,
String docUri,
int line)
Get the command for auto documentation Generation.
|
public static org.eclipse.lsp4j.Command getDocGenerationCommand(String nodeType, String docUri, int line)
nodeType
- Type of the node on which the documentation generateddocUri
- Document Uriline
- Line of the command being executedCommand
Document Generation commandpublic static org.eclipse.lsp4j.Command getAllDocGenerationCommand(String docUri)
docUri
- Document UriCommand
All Document Generation commandpublic static List<org.eclipse.lsp4j.Command> getCommandsByDiagnostic(org.eclipse.lsp4j.Diagnostic diagnostic, org.eclipse.lsp4j.CodeActionParams params, LSPackageCache lsPackageCache)
diagnostic
- Diagnostic to get the command againstparams
- Code Action parameterslsPackageCache
- Lang Server Package cacheList
List of commands related to the given diagnosticCopyright © 2018 WSO2. All rights reserved.