public abstract class LfeBaseProxyAction extends AnAction
AnAction.TransparentUpdateACTIONS_KEY, EMPTY_ARRAY| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(AnActionEvent e)
Implement this method to provide your action handler.
|
protected abstract void |
actionPerformedForLfe(AnActionEvent e,
LargeFileEditor largeFileEditor) |
void |
beforeActionPerformedUpdate(AnActionEvent e)
Same as
AnAction.update(AnActionEvent) but is calls immediately before actionPerformed() as final check guard. |
boolean |
displayTextInToolbar()
Override with true returned if your action has to display its text along with the icon when placed in the toolbar
|
boolean |
isDefaultIcon()
Returns true if the action has an internal, not user-customized icon.
|
boolean |
isDumbAware() |
boolean |
isInInjectedContext() |
boolean |
isTransparentUpdate() |
void |
setDefaultIcon(boolean isDefaultIconSet)
Sets the flag indicating whether the action has an internal or a user-customized icon.
|
void |
setInjectedContext(boolean worksInInjected)
Enables automatic detection of injected fragments in editor.
|
java.lang.String |
toString() |
void |
update(AnActionEvent e)
Updates the state of the action.
|
protected abstract void |
updateForLfe(AnActionEvent e,
LargeFileEditor largeFileEditor) |
addTextOverride, applyTextOverride, copyFrom, copyShortcutFrom, getEventProject, getShortcutSet, getTemplatePresentation, getTemplateText, isEnabledInModalContext, registerCustomShortcutSet, registerCustomShortcutSet, registerCustomShortcutSet, registerCustomShortcutSet, setEnabledInModalContext, setShortcutSet, startInTransaction, unregisterCustomShortcutSet, useSmallerFontForTextInToolbarpublic void update(AnActionEvent e)
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.public void actionPerformed(AnActionEvent e)
AnActionactionPerformed in class AnActione - Carries information on the invocation placepublic void beforeActionPerformedUpdate(AnActionEvent e)
AnActionAnAction.update(AnActionEvent) but is calls immediately before actionPerformed() as final check guard.
Default implementation delegates to AnAction.update(AnActionEvent).beforeActionPerformedUpdate in class AnActione - Carries information on the invocation place and data availablepublic boolean displayTextInToolbar()
AnActiondisplayTextInToolbar in class AnActionpublic void setDefaultIcon(boolean isDefaultIconSet)
AnActionsetDefaultIcon in class AnActionisDefaultIconSet - true if the icon is internal, false if the icon is customized by the user.public boolean isDefaultIcon()
AnActionisDefaultIcon in class AnActionpublic void setInjectedContext(boolean worksInInjected)
AnActionsetInjectedContext in class AnActionpublic boolean isInInjectedContext()
isInInjectedContext in class AnActionpublic boolean isTransparentUpdate()
isTransparentUpdate in class AnActionpublic boolean isDumbAware()
protected abstract void updateForLfe(AnActionEvent e, LargeFileEditor largeFileEditor)
protected abstract void actionPerformedForLfe(AnActionEvent e, LargeFileEditor largeFileEditor)