public abstract class EditorHeaderToggleAction extends CheckboxAction implements DumbAware, LightEditCompatible
AnAction.TransparentUpdateACTIONS_KEY, EMPTY_ARRAYACTION_KEY, COMPONENT_KEYSELECTED_PROPERTY| Modifier | Constructor and Description | 
|---|---|
protected  | 
EditorHeaderToggleAction(java.lang.String text)  | 
protected  | 
EditorHeaderToggleAction(java.lang.String text,
                        javax.swing.Icon icon,
                        javax.swing.Icon hoveredIcon,
                        javax.swing.Icon selectedIcon)  | 
| Modifier and Type | Method and Description | 
|---|---|
javax.swing.JComponent | 
createCustomComponent(Presentation presentation,
                     java.lang.String place)  | 
boolean | 
displayTextInToolbar()
Override with true returned if your action has to display its text along with the icon when placed in the toolbar 
 | 
boolean | 
isSelected(AnActionEvent e)
Returns the selected (checked, pressed) state of the action. 
 | 
protected abstract boolean | 
isSelected(SearchSession session)  | 
void | 
setSelected(AnActionEvent e,
           boolean selected)
Sets the selected state of the action to the specified value. 
 | 
protected abstract void | 
setSelected(SearchSession session,
           boolean selected)  | 
update, updateCustomComponentactionPerformedaddTextOverride, applyTextOverride, beforeActionPerformedUpdate, copyFrom, copyShortcutFrom, getEventProject, getShortcutSet, getTemplatePresentation, getTemplateText, isDefaultIcon, isEnabledInModalContext, isInInjectedContext, isTransparentUpdate, registerCustomShortcutSet, registerCustomShortcutSet, registerCustomShortcutSet, registerCustomShortcutSet, setDefaultIcon, setEnabledInModalContext, setInjectedContext, setShortcutSet, startInTransaction, toString, unregisterCustomShortcutSet, useSmallerFontForTextInToolbarclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateCustomComponentisSelected, setSelectedisDumbAwareprotected EditorHeaderToggleAction(java.lang.String text)
protected EditorHeaderToggleAction(java.lang.String text,
                                   javax.swing.Icon icon,
                                   javax.swing.Icon hoveredIcon,
                                   javax.swing.Icon selectedIcon)
public boolean displayTextInToolbar()
AnActiondisplayTextInToolbar in class AnActionpublic javax.swing.JComponent createCustomComponent(Presentation presentation, java.lang.String place)
createCustomComponent in interface CustomComponentActioncreateCustomComponent in class CheckboxActionCustomComponentAction.COMPONENT_KEY
 to retrieve current component from a Presentation instance in AnAction.update(AnActionEvent) method.public boolean isSelected(AnActionEvent e)
ToggleActionisSelected in class ToggleActione - the action event representing the place and context in which the selected state is queried.public void setSelected(AnActionEvent e, boolean selected)
ToggleActionsetSelected in class ToggleActione - the action event which caused the state change.selected - the new selected state of the action.protected abstract boolean isSelected(SearchSession session)
protected abstract void setSelected(SearchSession session, boolean selected)