public class DownloadDisabledResourceCodeAction extends Object implements ICodeActionParticipant
Constructor and Description |
---|
DownloadDisabledResourceCodeAction() |
Modifier and Type | Method and Description |
---|---|
static org.eclipse.lsp4j.Command |
createDownloadCommand(String title,
String url,
String documentURI) |
void |
doCodeAction(ICodeActionRequest request,
List<org.eclipse.lsp4j.CodeAction> codeActions,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)
Collect the code action in the given
codeActions for the given
code action request request . |
static String |
getUrlToForceToDownload(Map<String,Object> validationArgs)
Returns the url to force to download and null otherwise.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getResolveCodeActionParticipant
public void doCodeAction(ICodeActionRequest request, List<org.eclipse.lsp4j.CodeAction> codeActions, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)
ICodeActionParticipant
codeActions
for the given
code action request request
.doCodeAction
in interface ICodeActionParticipant
request
- the code action request.codeActions
- list of code actions to fill.cancelChecker
- the cancel checker.public static org.eclipse.lsp4j.Command createDownloadCommand(String title, String url, String documentURI)
Copyright © 2022. All rights reserved.