public class GotoSuperAction extends PresentableActionHandlerBasedAction implements CodeInsightActionHandler, DumbAware
AnAction.TransparentUpdate| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FEATURE_ID |
ACTIONS_KEY, EMPTY_ARRAY| Constructor and Description |
|---|
GotoSuperAction() |
| Modifier and Type | Method and Description |
|---|---|
protected CodeInsightActionHandler |
getHandler() |
protected LanguageExtension<CodeInsightActionHandler> |
getLanguageExtension() |
void |
invoke(Project project,
Editor editor,
PsiFile file) |
boolean |
startInWriteAction()
Indicate whether this action should be invoked inside write action.
|
void |
update(AnActionEvent event)
Updates the state of the action.
|
getCommandName, isValidForFile, updategetBaseEditor, getEditor, getInjectedEditor, getInjectedEditor, isValidForLookupactionPerformed, actionPerformedImpl, beforeActionPerformedUpdate, updateaddTextOverride, applyTextOverride, copyFrom, copyShortcutFrom, displayTextInToolbar, getEventProject, getShortcutSet, getTemplatePresentation, getTemplateText, isDefaultIcon, isEnabledInModalContext, isInInjectedContext, isTransparentUpdate, registerCustomShortcutSet, registerCustomShortcutSet, registerCustomShortcutSet, registerCustomShortcutSet, setDefaultIcon, setEnabledInModalContext, setInjectedContext, setShortcutSet, startInTransaction, toString, unregisterCustomShortcutSet, useSmallerFontForTextInToolbarclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetElementToMakeWritableisDumbAwarepublic static final java.lang.String FEATURE_ID
protected CodeInsightActionHandler getHandler()
getHandler in class CodeInsightActionpublic void invoke(Project project, Editor editor, PsiFile file)
invoke in interface CodeInsightActionHandlerpublic boolean startInWriteAction()
WriteActionAwarefalse if e.g. modal dialog is shown inside the action.
If false is returned the action itself is responsible for starting write action
when needed, by calling Application.runWriteAction(Runnable).startInWriteAction in interface WriteActionAwaretrue if the action requires a write action (default), false otherwise.public void update(AnActionEvent event)
AnActionAnAction.actionPerformed(AnActionEvent) method and notify
the user that action cannot be executed if it's the case.
If the action is added to a toolbar, its "update" can be called twice a second, but only if there was
any user activity or a focus transfer. If your action's availability is changed
in absence of any of these events, please call ActivityTracker.getInstance().inc() to notify
action subsystem to update all toolbar actions when your subsystem's determines that its actions' visibility might be affected.update in class PresentableActionHandlerBasedActionevent - Carries information on the invocation place and data availableprotected LanguageExtension<CodeInsightActionHandler> getLanguageExtension()
getLanguageExtension in class PresentableActionHandlerBasedAction