public abstract class AbstractFixMissingGrammarCodeAction extends Object implements ICodeActionParticipant
Constructor and Description |
---|
AbstractFixMissingGrammarCodeAction() |
Modifier and Type | Method and Description |
---|---|
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 . |
protected abstract FileContentGeneratorSettings |
getFileContentGeneratorSettings()
Returns the grammar settings used to generate the missing grammar file (XSD,
DTD).
|
protected abstract String |
getParticipantId() |
ICodeActionResolvesParticipant |
getResolveCodeActionParticipant(String participantId)
Returns the codeAction resolver participant identified by the given
participantId and null otherwise. |
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 ICodeActionResolvesParticipant getResolveCodeActionParticipant(String participantId)
ICodeActionParticipant
participantId
and null otherwise.getResolveCodeActionParticipant
in interface ICodeActionParticipant
participantId
- the code action resolver participant ID.participantId
and null otherwise.protected abstract String getParticipantId()
protected abstract FileContentGeneratorSettings getFileContentGeneratorSettings()
Copyright © 2022. All rights reserved.