Bug 135740 - [Decorators] Not possible to use IViewerLabelProvider with DecoratingLabelProvider
Summary: [Decorators] Not possible to use IViewerLabelProvider with DecoratingLabelPro...
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2006-04-09 05:57 EDT by Benjamin Pasero CLA
Modified: 2019-09-06 16:13 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Pasero CLA 2006-04-09 05:57:01 EDT
I would like to use my IViewerLabelProvider with a DecoratingLabelProvider, but the current nature of the decorator is to use the ILabelProvider methods. I would expect the Decorator to have a similiar method as the IViewerLabelProvider, like 

decorateLabel(ViewerLabel label, Object element)

I can see that the LabelDecorator is using LabelProvider-Methods (like getText()), that are not implemented in my IViewerLabelProvider (although it has to implement them, since you can not set a IBaseLabelProvider to a Viewer. This is actually a seperate problem).

Ben
Comment 1 Benjamin Pasero CLA 2006-04-09 06:32:59 EDT
Eclipse 3.2 M6
I think the problem is in DecoratingLabelProvider:

public void updateLabel(ViewerLabel settings, TreePath elementPath)

In that method, there is no instanceof check for a IViewerLabelProvider,
only for ITreePathLabelProvider, which seems to work very similiar to a IViewerLabelProvider.

Ben
Comment 2 Susan McCourt CLA 2006-04-10 15:19:23 EDT
This is a viewers issue, reassigning to Boris.
Comment 3 Boris Bokowski CLA 2009-11-17 10:53:48 EST
Oleg is now responsible for watching the [Decorators] category.
Comment 4 Eclipse Webmaster CLA 2019-09-06 16:13:44 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.