public class EclipseDockActionSource extends FilteredDockActionSource
DockActions
filtered by the
EclipseThemeConnector
, using EclipseThemeConnector#isTabAction(Dockable, DockAction)
.listeners
Constructor and Description |
---|
EclipseDockActionSource(EclipseTheme theme,
DockActionSource source,
EclipseTabStateInfo tab,
boolean showForTab)
Creates a new source
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
include(DockAction action)
Tells whether
action should be included in the list of
actions of this source, or not. |
addDockActionSourceListener, getDockAction, getDockActionCount, getLocationHint, iterator, refresh, removeDockActionSourceListener
fireAdded, fireRemoved, hasListeners, indexOf
public EclipseDockActionSource(EclipseTheme theme, DockActionSource source, EclipseTabStateInfo tab, boolean showForTab)
theme
- the theme for which this source is usedsource
- the source which is filteredtab
- the tab associated with the Dockable
showForTab
- whether this source is associated with the tab (or not)protected boolean include(DockAction action)
FilteredDockActionSource
action
should be included in the list of
actions of this source, or not.include
in class FilteredDockActionSource
action
- the action to testtrue
if action
should be shown