public abstract class LfeBaseProxyAction extends AnAction
AnAction.TransparentUpdate
ACTIONS_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, useSmallerFontForTextInToolbar
public void update(AnActionEvent e)
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.public void actionPerformed(AnActionEvent e)
AnAction
actionPerformed
in class AnAction
e
- Carries information on the invocation placepublic void beforeActionPerformedUpdate(AnActionEvent e)
AnAction
AnAction.update(AnActionEvent)
but is calls immediately before actionPerformed() as final check guard.
Default implementation delegates to AnAction.update(AnActionEvent)
.beforeActionPerformedUpdate
in class AnAction
e
- Carries information on the invocation place and data availablepublic boolean displayTextInToolbar()
AnAction
displayTextInToolbar
in class AnAction
public void setDefaultIcon(boolean isDefaultIconSet)
AnAction
setDefaultIcon
in class AnAction
isDefaultIconSet
- true if the icon is internal, false if the icon is customized by the user.public boolean isDefaultIcon()
AnAction
isDefaultIcon
in class AnAction
public void setInjectedContext(boolean worksInInjected)
AnAction
setInjectedContext
in class AnAction
public boolean isInInjectedContext()
isInInjectedContext
in class AnAction
public boolean isTransparentUpdate()
isTransparentUpdate
in class AnAction
public boolean isDumbAware()
protected abstract void updateForLfe(AnActionEvent e, LargeFileEditor largeFileEditor)
protected abstract void actionPerformedForLfe(AnActionEvent e, LargeFileEditor largeFileEditor)