Community
Participate
Working Groups
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.
*** This bug has been marked as a duplicate of 97780 ***