Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 120965 - [Model] WorkbenchLabelProvider getAdpater methods are final
Summary: [Model] WorkbenchLabelProvider getAdpater methods are final
Status: RESOLVED DUPLICATE of bug 97780
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1.1   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Nick Edgar CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-14 16:54 EST by Charles Tuckey CLA
Modified: 2005-12-22 10:28 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Charles Tuckey CLA 2005-12-14 16:54:55 EST
The getAdapter methods in WorkbenchLabelProvider are final so subclasses cannot override these methods to use AdapterManagers. I can see no reason why these methods need to be final since they don't change the state of the WorkbenchLabelProvider.

I would like to be able to use an AdapterManager because my model objects do not implement IAdaptable and cannot be made to do so.

The getAdapter methods in BaseWorkbenchContentProvider are not final so I can simply extend this class to get a content provider I can use with my model objects.

I realize there are myriad ways to work around this problem but they are all more work than simply extending the WorkbenchLabelProvider class. For the record, my workaround uses a ILabelProvider class that I wrote that contains a WorkbenchLabelProvider object.
Comment 1 Nick Edgar CLA 2005-12-22 10:28:20 EST

*** This bug has been marked as a duplicate of 97780 ***