public class SetTodoFilterAction extends AnAction implements CustomComponentAction
AnAction.TransparentUpdate
ACTIONS_KEY, EMPTY_ARRAY
ACTION_KEY, COMPONENT_KEY
Constructor and Description |
---|
SetTodoFilterAction(Project project,
TodoPanelSettings toDoSettings,
Consumer<? super TodoFilter> todoFilterConsumer) |
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) |
static DefaultActionGroup |
createPopupActionGroup(Project project,
TodoPanelSettings settings,
Consumer<? super TodoFilter> todoFilterConsumer) |
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
public SetTodoFilterAction(Project project, TodoPanelSettings toDoSettings, Consumer<? super TodoFilter> todoFilterConsumer)
public void actionPerformed(AnActionEvent e)
AnAction
actionPerformed
in class AnAction
e
- Carries information on the invocation placepublic 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 DefaultActionGroup createPopupActionGroup(Project project, TodoPanelSettings settings, Consumer<? super TodoFilter> todoFilterConsumer)