public abstract class IconWithTextAction extends AnAction implements CustomComponentAction
AnAction.TransparentUpdate
ACTIONS_KEY, EMPTY_ARRAY
ACTION_KEY, COMPONENT_KEY
Modifier | Constructor and Description |
---|---|
protected |
IconWithTextAction() |
protected |
IconWithTextAction(java.lang.String text) |
protected |
IconWithTextAction(java.lang.String text,
java.lang.String description,
javax.swing.Icon icon) |
protected |
IconWithTextAction(java.util.function.Supplier<java.lang.String> dynamicText) |
protected |
IconWithTextAction(java.util.function.Supplier<java.lang.String> dynamicText,
java.util.function.Supplier<java.lang.String> dynamicDescription,
javax.swing.Icon icon) |
Modifier and Type | Method and Description |
---|---|
javax.swing.JComponent |
createCustomComponent(Presentation presentation,
java.lang.String place) |
static javax.swing.JComponent |
createCustomComponentImpl(AnAction action,
Presentation presentation)
Deprecated.
|
static javax.swing.JComponent |
createCustomComponentImpl(AnAction action,
Presentation presentation,
java.lang.String place) |
actionPerformed, 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
createCustomComponent
isDumbAware
protected IconWithTextAction()
protected IconWithTextAction(java.lang.String text)
protected IconWithTextAction(java.util.function.Supplier<java.lang.String> dynamicText)
protected IconWithTextAction(java.lang.String text, java.lang.String description, javax.swing.Icon icon)
protected IconWithTextAction(java.util.function.Supplier<java.lang.String> dynamicText, java.util.function.Supplier<java.lang.String> dynamicDescription, javax.swing.Icon icon)
public javax.swing.JComponent createCustomComponent(Presentation presentation, java.lang.String place)
createCustomComponent
in interface CustomComponentAction
CustomComponentAction.COMPONENT_KEY
to retrieve current component from a Presentation instance in AnAction.update(AnActionEvent)
method.public static javax.swing.JComponent createCustomComponentImpl(AnAction action, Presentation presentation, java.lang.String place)
@Deprecated public static javax.swing.JComponent createCustomComponentImpl(AnAction action, Presentation presentation)
createCustomComponentImpl(AnAction, Presentation, String)