[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.platform.swt] Label Decorator problem
|
I am trying to attach a lightweight decorator to a TreeViewer. I added the
extension point and created the Decorator class (implementing the
LightweightDecorator interface). The objectClass is my own object in the
treeviewer. After that i added this line to the code where i was creating
the treeviewer:
treeviewer.setLabelProvider(new DecoratingLabelProvider(labelProvider,
MyPlugin.getDefault().getWorkbench().getDecoratorManager("org.myplugin.decor
ator"));
When i run the run-time workbench, isee a new entry in the decorations
preference page. But enabling and disabling it doesnt do anything. It gives
me no decorations. I am sure i am missing something small. Does anyone know
what I am doing wrong?
Thanks