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, update
getBaseEditor, getEditor, getInjectedEditor, getInjectedEditor, isValidForLookup
actionPerformed, actionPerformedImpl, beforeActionPerformedUpdate, update
addTextOverride, applyTextOverride, 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
getElementToMakeWritable
isDumbAware
public static final java.lang.String FEATURE_ID
protected CodeInsightActionHandler getHandler()
getHandler
in class CodeInsightAction
public void invoke(Project project, Editor editor, PsiFile file)
invoke
in interface CodeInsightActionHandler
public boolean startInWriteAction()
WriteActionAware
false
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 WriteActionAware
true
if the action requires a write action (default), false
otherwise.public void update(AnActionEvent event)
AnAction
AnAction.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 PresentableActionHandlerBasedAction
event
- Carries information on the invocation place and data availableprotected LanguageExtension<CodeInsightActionHandler> getLanguageExtension()
getLanguageExtension
in class PresentableActionHandlerBasedAction