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

Bug 115218

Summary: [CommonNavigator] Bring back the memory mechanism removed during the port to WTP
Product: [Eclipse Project] Platform Reporter: Michael D. Elder <mdelder>
Component: UIAssignee: Michael D. Elder <mdelder>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Michael.Valenta, theivend
Version: 3.2   
Target Milestone: 3.2 M4   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Michael D. Elder CLA 2005-11-05 16:06:42 EST
The Common Navigator framework originaly coordinated the label provider based on
children contributed from the content provider. That is, once an object was
returned by a content provider, the framework would go back to the label
provider of that extension (instead of going back to the enablement clauses) to
fetch a label to display. 

What this means is that if two extensions contribute an object of the same type,
then each of them would contribute a label for their specific object; currently
the framework would use the same label provider for both objects (depending on
which one was found to contribute a label first).
Comment 1 Michael D. Elder CLA 2005-11-05 17:16:33 EST
*** Bug 105331 has been marked as a duplicate of this bug. ***
Comment 2 Michael D. Elder CLA 2005-11-13 17:37:54 EST
*** Bug 114991 has been marked as a duplicate of this bug. ***
Comment 3 Michael D. Elder CLA 2005-11-13 17:48:45 EST
Modified the NavigatorContentService to remember who contributes what content,
and to use that recollection to determine the content and label providers for a
given item. 

Content and Label providers are still sorted by the priority defined in the
extension point, so the source of an item might not be the first extension
queried, if another extension defines itself as higher priority. 

Clients should also be warned that failing to supply all objects in the
enablement clause can result in problems with the Link With Editor support. 
Comment 4 Michael D. Elder CLA 2005-12-13 17:07:16 EST
Verified in 20051213_0100.