public abstract class FavoritesToolbarButtonAction extends AnActionButton implements Toggleable, DumbAware
AnActionButton.ActionButtonListener, AnActionButton.AnActionButtonWrapper, AnActionButton.AnActionEventWrapper, AnActionButton.CheckedAnActionButton
AnAction.TransparentUpdate
ACTIONS_KEY, EMPTY_ARRAY
SELECTED_PROPERTY
Constructor and Description |
---|
FavoritesToolbarButtonAction(Project project,
FavoritesViewTreeBuilder builder,
java.lang.String name,
javax.swing.Icon icon) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(AnActionEvent e)
Implement this method to provide your action handler.
|
FavoritesViewTreeBuilder |
getBuilder() |
FavoritesViewSettings |
getViewSettings() |
abstract boolean |
isOptionEnabled() |
abstract void |
setOption(boolean enabled) |
void |
updateButton(AnActionEvent e) |
addActionButtonListener, addCustomUpdater, fromAction, getContextComponent, getDataContext, getPreferredPopupPoint, getShortcut, isEnabled, isVisible, removeActionButtonListener, setContextComponent, setEnabled, setShortcut, setVisible, update
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, useSmallerFontForTextInToolbar
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isSelected, setSelected
isDumbAware
public FavoritesToolbarButtonAction(Project project, FavoritesViewTreeBuilder builder, java.lang.String name, javax.swing.Icon icon)
public abstract boolean isOptionEnabled()
public abstract void setOption(boolean enabled)
public FavoritesViewSettings getViewSettings()
public FavoritesViewTreeBuilder getBuilder()
public void actionPerformed(AnActionEvent e)
AnAction
actionPerformed
in class AnAction
e
- Carries information on the invocation placepublic void updateButton(AnActionEvent e)
updateButton
in class AnActionButton