|
Eclipse Platform Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IThemeManager
A theme manager is an object that contains references to usable
ITheme
objects and maintains a reference to the currently active
theme. This theme will be used by the workbench to decorate tab folders and
other controls where possible. The workbench implementation of this
interface will push the values of the current theme into the underlying jface
registries (ColorRegistry
and
FontRegistry
whenever the current theme
changes. Clients who do not need access to specific themes may instead
attach listeners to these registries directly.
This interface is not intended to be implemented or extended by clients.
IWorkbench.getThemeManager()
Field Summary | |
---|---|
static java.lang.String |
CHANGE_CURRENT_THEME
Indicates that the current theme has changed to a new theme. |
static java.lang.String |
DEFAULT_THEME
The default theme id. |
Method Summary | |
---|---|
void |
addPropertyChangeListener(IPropertyChangeListener listener)
Adds a property listener to the manager. |
ITheme |
getCurrentTheme()
Get the currently active theme. |
ITheme |
getTheme(java.lang.String id)
Get a theme. |
void |
removePropertyChangeListener(IPropertyChangeListener listener)
Removes a property listener from the workbench. |
void |
setCurrentTheme(java.lang.String id)
Set the currently active theme. |
Field Detail |
---|
static final java.lang.String CHANGE_CURRENT_THEME
static final java.lang.String DEFAULT_THEME
Method Detail |
---|
void addPropertyChangeListener(IPropertyChangeListener listener)
CHANGE_CURRENT_THEME
.
listener
- the listener to addITheme getCurrentTheme()
null
.ITheme getTheme(java.lang.String id)
id
- the theme to find.
ITheme
or null
if it cannot be found.void removePropertyChangeListener(IPropertyChangeListener listener)
listener
- the listener to removevoid setCurrentTheme(java.lang.String id)
id
- the id of the new active theme
|
Eclipse Platform Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.