Project: Eclipse_Platform_UI
Bug 27972 [Decorators] getLabelDecorator fails for lightweight decorators
Reported: 2002-12-09 15:06:17 | Status: closed fixed

build I20021206 The Team team is in the process of changing their decorator from heavyweight to lightweight. They got an NPE calling getLabelDecorator with the new id, since it assumes the decorator is heavyweight and is in the list of definitions. getLabelDecorator also returns ILabelDecorator instead of ILightweightLabelDecorator. Since this can't be changed due to backwards compatibility, we need to add a new method: ILightweightLabelDecorator getLightweightLabelDecorator(String decoratorId).

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/IDecoratorManager.java bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/decorators/DecoratorManager.java