public class DefaultCustomComponentAction extends AnAction implements CustomComponentAction, LightEditCompatible
AnAction.TransparentUpdateACTIONS_KEY, EMPTY_ARRAYACTION_KEY, COMPONENT_KEY| Constructor and Description |
|---|
DefaultCustomComponentAction(java.util.function.Supplier<? extends javax.swing.JComponent> producer) |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(AnActionEvent e)
Implement this method to provide your action handler.
|
javax.swing.JComponent |
createCustomComponent(Presentation presentation,
java.lang.String place) |
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, useSmallerFontForTextInToolbarclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateCustomComponentisDumbAwarepublic DefaultCustomComponentAction(java.util.function.Supplier<? extends javax.swing.JComponent> producer)
public void actionPerformed(AnActionEvent e)
AnActionactionPerformed in class AnActione - Carries information on the invocation placepublic javax.swing.JComponent createCustomComponent(Presentation presentation, java.lang.String place)
createCustomComponent in interface CustomComponentActionCustomComponentAction.COMPONENT_KEY
to retrieve current component from a Presentation instance in AnAction.update(AnActionEvent) method.