[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.platform] IDecoratorManager .getLabelDecorator() returning null
|
- From: jan@xxxxxxxxxxx (Jan)
- Date: Thu, 16 Mar 2006 12:45:44 +0000 (UTC)
- Newsgroups: eclipse.platform
- Organization: Eclipse
- User-agent: NewsPortal/0.36 (http://florian-amrhein.de/newsportal)
Hi there,
I've built a tree view derived from the TreeViewer and populated with
my own object. Attaching a decorator for the nodes of the tree view works
fine, the objects are decorated as desired.
However, the DecoratorManager wont return a reference to my decorator.
It is defined in the plugin.xml and attached to the tree view via
setLabelProvider() when the view is created.
IDecoratorManager decoratorMgr =
DDXPlugin.getInstance().getWorkbench().getDecoratorManager();
ILabelDecorator labDecorator =
decoratorMgr.getLabelDecorator("org.example.demo.views.dsslist.filterednodedecorator");
labDecorator is always null.
Funny thing, because decoratorMgr.getEnabled() returns true!
I guess I'm just missing some initialization telling the DecoratorManager
about the instance of my Decorator instance.
Any help is appreciated.
regards,
jan