public final class ActionStub extends AnAction
AnAction.TransparentUpdate
ACTIONS_KEY, EMPTY_ARRAY
Constructor and Description |
---|
ActionStub(java.lang.String actionClass,
java.lang.String id,
IdeaPluginDescriptor plugin,
java.lang.String iconPath,
java.lang.String projectType,
java.util.function.Supplier<Presentation> templatePresentation) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(AnActionEvent e)
Implement this method to provide your action handler.
|
void |
addActionTextOverride(java.lang.String place,
java.lang.String text) |
void |
copyActionTextOverride(java.lang.String fromPlace,
java.lang.String toPlace) |
static void |
copyTemplatePresentation(Presentation sourcePresentation,
Presentation targetPresentation) |
java.lang.String |
getClassName() |
java.lang.String |
getIconPath() |
java.lang.String |
getId() |
java.lang.ClassLoader |
getLoader() |
IdeaPluginDescriptor |
getPlugin() |
PluginId |
getPluginId() |
java.lang.String |
getProjectType() |
void |
initAction(AnAction targetAction)
Copies template presentation and shortcuts set to
targetAction . |
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, update, useSmallerFontForTextInToolbar
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isDumbAware
public ActionStub(java.lang.String actionClass, java.lang.String id, IdeaPluginDescriptor plugin, java.lang.String iconPath, java.lang.String projectType, java.util.function.Supplier<Presentation> templatePresentation)
public void addActionTextOverride(java.lang.String place, java.lang.String text)
public void copyActionTextOverride(java.lang.String fromPlace, java.lang.String toPlace)
public IdeaPluginDescriptor getPlugin()
public java.lang.String getClassName()
public java.lang.String getId()
public java.lang.ClassLoader getLoader()
public PluginId getPluginId()
public java.lang.String getIconPath()
public void actionPerformed(AnActionEvent e)
AnAction
actionPerformed
in class AnAction
e
- Carries information on the invocation placepublic final void initAction(AnAction targetAction)
targetAction
.public static void copyTemplatePresentation(Presentation sourcePresentation, Presentation targetPresentation)
public java.lang.String getProjectType()