Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 310532

Summary: [TabbedProperties] Tabbed Properties not disposing label providers
Product: [Eclipse Project] Platform Reporter: Paul Bilnoski <bilnoski>
Component: UIAssignee: Platform UI Triaged <platform-ui-triaged>
Status: CLOSED DUPLICATE QA Contact: Anthony Hunter <ahunter.eclipse>
Severity: normal    
Priority: P3 CC: daniel_megert, remy.suen
Version: 3.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Sample project to reduce and illustrate the problem none

Description Paul Bilnoski CLA 2010-04-26 15:27:00 EDT
Build Identifier: 3.5.0.I20090429-1800

A label provider can be specified in the propertyContributor extension point to provide labels and icons on the tabbed property sheet view. The label provider is constructed reflectively via extension point in the TabbedPropertyRegistry constructor, but never disposed allowing it to release internal resources.

The TabbedPropertyRegistryFactory creates and disposes regristries when their refcounts expire, so I suppose it should be in charge of disposing label providers or other resources requiring lifecycle when cache data is removed

Reproducible: Always

Steps to Reproduce:
1. Open "Properties" view and provided sample view in the same perspective
2. Note that the SampleLabelProvider printed a message upon construction
3. Closing all views does not cause the label provider to be properly disposed.
Comment 1 Paul Bilnoski CLA 2010-04-26 15:27:48 EDT
Created attachment 166123 [details]
Sample project to reduce and illustrate the problem
Comment 2 Dani Megert CLA 2010-07-06 09:55:40 EDT

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