Project: Eclipse_Platform_UI
Bug 22118 [Decorators] Decorators for IResource ignores adaptable flag
Reported: 2002-08-02 04:05:12 | Status: verified fixed

In the extension point ="org.eclipse.ui.decorators" the "adaptable" flag is ignored for objectClass="org.eclipse.core.resources.IResource". In a created tree view not only IResource elements are decorated. Also elements that are adaptable to IResource are decorated. The view set the label provider the following way in IWorkbenchPart#createPartControl. viewer.setLabelProvider( new DecoratingLabelProvider( new WorkbenchLabelProvider(), PlatformUI.getWorkbench().getDecoratorManager().getLabelDecorator())); <extension point="org.eclipse.ui.decorators"> <decorator objectClass="org.eclipse.core.resources.IResource" adaptable="false" label="Resource Problem Label Decorations" state="true" class="x.y.z.ProblemsLabelDecorator" id="x.y.z.ProblemsLabelDecorator.IResource"> </decorator> </extension>

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