public abstract class KeyAwareInspectionViewAction extends InspectionViewActionBase
Modifier and Type | Class and Description |
---|---|
static class |
KeyAwareInspectionViewAction.DisableInspection |
static class |
KeyAwareInspectionViewAction.RunInspectionOn |
AnAction.TransparentUpdate
ACTIONS_KEY, EMPTY_ARRAY
Constructor and Description |
---|
KeyAwareInspectionViewAction(java.lang.String name) |
KeyAwareInspectionViewAction(java.util.function.Supplier<java.lang.String> name) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(AnActionEvent e)
Implement this method to provide your action handler.
|
protected abstract void |
actionPerformed(InspectionResultsView view,
HighlightDisplayKey key) |
protected boolean |
isEnabled(InspectionResultsView view,
AnActionEvent e) |
getView, update
addTextOverride, applyTextOverride, beforeActionPerformedUpdate, copyFrom, copyShortcutFrom, displayTextInToolbar, getEventProject, getShortcutSet, getTemplatePresentation, getTemplateText, isDefaultIcon, isEnabledInModalContext, isInInjectedContext, isTransparentUpdate, registerCustomShortcutSet, registerCustomShortcutSet, registerCustomShortcutSet, registerCustomShortcutSet, setDefaultIcon, setEnabledInModalContext, setInjectedContext, setShortcutSet, startInTransaction, toString, unregisterCustomShortcutSet, useSmallerFontForTextInToolbar
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isDumbAware
public KeyAwareInspectionViewAction(java.lang.String name)
public KeyAwareInspectionViewAction(java.util.function.Supplier<java.lang.String> name)
protected boolean isEnabled(InspectionResultsView view, AnActionEvent e)
isEnabled
in class InspectionViewActionBase
public void actionPerformed(AnActionEvent e)
AnAction
actionPerformed
in class AnAction
e
- Carries information on the invocation placeprotected abstract void actionPerformed(InspectionResultsView view, HighlightDisplayKey key)