public interface EclipseThemeConnector
EclipseThemeConnector
tells the EclipseTheme
where to paint tabs and borders. It
also tells which DockAction
s to show on tabs and which actions to hide.Modifier and Type | Interface and Description |
---|---|
static class |
EclipseThemeConnector.TitleBar
Describes which kind of title, and which kind of
DockableDisplayer
should be used for a Dockable or a DockStation . |
Modifier and Type | Method and Description |
---|---|
void |
addEclipseThemeConnectorListener(EclipseThemeConnectorListener listener)
Adds
listener to this connector. |
EclipseThemeConnector.TitleBar |
getTitleBarKind(DockStation parent,
Dockable dockable)
Tells which kind of title and
DockableDisplayer should be
shown for dockable assuming everything can be chosen
freely. |
void |
removeEclipseThemeConnectorListener(EclipseThemeConnectorListener listener)
Removes
listener from this connector. |
boolean |
shouldShowOnSide(DockAction action,
EclipseTabStateInfo tab)
Tells whether
action should be shown on the right side of the
tab of dockable .Note that #shouldShowOnSide(DockAction, Dockable) and shouldShowOnTab(DockAction, EclipseTabStateInfo)
are independent of each other. |
boolean |
shouldShowOnTab(DockAction action,
EclipseTabStateInfo tab)
Tells whether
action should be shown on the tab of dockable .Note that #shouldShowOnSide(DockAction, Dockable) and shouldShowOnTab(DockAction, EclipseTabStateInfo)
are independent of each other. |
void addEclipseThemeConnectorListener(EclipseThemeConnectorListener listener)
listener
to this connector.listener
- the listener, not null
void removeEclipseThemeConnectorListener(EclipseThemeConnectorListener listener)
listener
from this connector.listener
- the listener to removeEclipseThemeConnector.TitleBar getTitleBarKind(DockStation parent, Dockable dockable)
DockableDisplayer
should be
shown for dockable
assuming everything can be chosen
freely.parent
- the future or current parent of dockable
that will
show the DockableDisplayer
. May be null
.dockable
- the element that stands alone on a DockStation
boolean shouldShowOnSide(DockAction action, EclipseTabStateInfo tab)
action
should be shown on the right side of the
tab of dockable
.#shouldShowOnSide(DockAction, Dockable)
and shouldShowOnTab(DockAction, EclipseTabStateInfo)
are independent of each other.action
- the action to showtab
- information about the tab that shows the Dockable
action
should be shown on the right sideboolean shouldShowOnTab(DockAction action, EclipseTabStateInfo tab)
action
should be shown on the tab of dockable
.#shouldShowOnSide(DockAction, Dockable)
and shouldShowOnTab(DockAction, EclipseTabStateInfo)
are independent of each other.action
- the action to showtab
- information about the tab that shows the Dockable
action
should be shown on the tab