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

Bug 171099

Summary: [Sync View] Java content provider provides wrong label for folder
Product: [Eclipse Project] JDT Reporter: Michael Valenta <Michael.Valenta>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.3   
Target Milestone: 3.3 M7   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Patch to JDT/UI none

Description Michael Valenta CLA 2007-01-19 15:48:45 EST
When view a resource project (i.e. non-Java) in the Sync view when using compressed folder, the Java content provider is somehow asked to provide a label and only provides a single segment instead of the project relative path. This is probably related to the use of pipelining (i.e. I recall that pipelining prevented the CN framework from being able to determine the proper model to ask for the label.
Comment 1 Michael Valenta CLA 2007-03-30 16:22:02 EDT
Created attachment 62557 [details]
Patch to JDT/UI

This patch to JDT/UI will prevent the Java label provider from providing a label for any folder that is a child of the project in the display tree but is not a child in the model. Because Java doesn't provide a label, the CNF will ask the resource label provider. We know that the Resource label provider is active in this case since it is the only provider that puts a nested folder as a direct child of the project.
Comment 2 Michael Valenta CLA 2007-03-30 16:25:29 EDT
Moving to JDT/UI to consider path. This is a less general fix for the problem outlined in bug 153912.
Comment 3 Martin Aeschlimann CLA 2007-04-10 13:01:28 EDT
patch released > 20070410. Thanks Michael!