public class ShowIntentionsPass extends TextEditorHighlightingPass
Modifier and Type | Class and Description |
---|---|
static class |
ShowIntentionsPass.IntentionsInfo |
EMPTY_ARRAY, myDocument, myProject
Modifier and Type | Method and Description |
---|---|
void |
doApplyInformationToEditor() |
void |
doCollectInformation(ProgressIndicator progress) |
static void |
fillIntentionsInfoForHighlightInfo(HighlightInfo infoAtCursor,
ShowIntentionsPass.IntentionsInfo intentions,
java.util.List<? extends HighlightInfo.IntentionActionDescriptor> fixes) |
static ShowIntentionsPass.IntentionsInfo |
getActionsToShow(Editor hostEditor,
PsiFile hostFile,
boolean includeSyncActions)
Returns the list of actions to show in the Alt-Enter popup at the caret offset in the given editor.
|
static void |
getActionsToShow(Editor hostEditor,
PsiFile hostFile,
ShowIntentionsPass.IntentionsInfo intentions,
int passIdToShowIntentionsFor)
Collects intention actions from providers intended to be invoked in a background thread.
|
static void |
getActionsToShowSync(Editor hostEditor,
PsiFile hostFile,
ShowIntentionsPass.IntentionsInfo intentions)
Collects intention actions from providers intended to be invoked in EDT.
|
static java.util.List<HighlightInfo.IntentionActionDescriptor> |
getAvailableFixes(Editor editor,
PsiFile file,
int passId,
int offset) |
static boolean |
markActionInvoked(Project project,
Editor editor,
IntentionAction action) |
applyInformationToEditor, collectInformation, getColorsScheme, getCompletionPredecessorIds, getDocument, getId, getInfos, getStartingPredecessorIds, isDumbMode, isRunIntentionPassAfter, isValid, setColorsScheme, setCompletionPredecessorIds, setId, setStartingPredecessorIds, toString
public static java.util.List<HighlightInfo.IntentionActionDescriptor> getAvailableFixes(Editor editor, PsiFile file, int passId, int offset)
public static boolean markActionInvoked(Project project, Editor editor, IntentionAction action)
public void doCollectInformation(ProgressIndicator progress)
doCollectInformation
in class TextEditorHighlightingPass
public void doApplyInformationToEditor()
doApplyInformationToEditor
in class TextEditorHighlightingPass
public static ShowIntentionsPass.IntentionsInfo getActionsToShow(Editor hostEditor, PsiFile hostFile, boolean includeSyncActions)
includeSyncActions
- whether EDT-only providers should be queried, if true
, this method should be invoked in EDTpublic static void getActionsToShowSync(Editor hostEditor, PsiFile hostFile, ShowIntentionsPass.IntentionsInfo intentions)
public static void getActionsToShow(Editor hostEditor, PsiFile hostFile, ShowIntentionsPass.IntentionsInfo intentions, int passIdToShowIntentionsFor)
public static void fillIntentionsInfoForHighlightInfo(HighlightInfo infoAtCursor, ShowIntentionsPass.IntentionsInfo intentions, java.util.List<? extends HighlightInfo.IntentionActionDescriptor> fixes)