|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Manages the decorators contributed via the decorators extension point.
Views which allow decoration of their elements should use the label
decorator returned by getLabelDecorator()
.
Method Summary | |
boolean |
getEnabled(String decoratorId)
Returns whether the specified decorator is enabled. |
ILabelDecorator |
getLabelDecorator()
Returns the label decorator which applies the decorations from all enabled decorators. |
ILabelDecorator |
getLabelDecorator(String decoratorId)
Returns the label decorator for the specified decorator if it is enabled. |
void |
setEnabled(String decoratorId,
boolean enabled)
Sets whether the specified decorator is enabled. |
Method Detail |
public ILabelDecorator getLabelDecorator()
DecoratingLabelProvider
public ILabelDecorator getLabelDecorator(String decoratorId)
null
.
decoratorId
- the decorator id
public boolean getEnabled(String decoratorId)
decoratorId
- the decorator id
true
if the decorator is enabled, or
false
if notpublic void setEnabled(String decoratorId, boolean enabled) throws CoreException
decoratorId
- the decorator idenabled
- true
to enable the decorator, or
false
to disable it
CoreException
- if the decorator cannot be instantiated
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |