Bug 163377

Summary: [CView] CView does not reveal new resources
Product: [Tools] CDT Reporter: Sascha Radike <sradike>
Component: cdt-coreAssignee: Anton Leherbauer <aleherb+eclipse>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 Keywords: contributed
Version: 3.1.1   
Target Milestone: 4.0 M5   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 163578    
Attachments:
Description Flags
Patch bjorn.freeman-benson: iplog+

Description Sascha Radike CLA 2006-11-03 15:02:07 EST
The CView does not reveal new resources which have been created by a wizard (resulting in a call to CView.selectReveal(ISelection).

The CView does only reveal elements of the selection which can be converted to CElements, but it does not reveal simple resources like IFile, IFolder, ... .

Reason:
CView.selectReveal(ISelection) calls SelectionConverter.convertSelectionToCElements - which converts objects of the selection to celements and ignores non-c resources.

See attached patch for changes. They are very small, so I think there is no need for further comments. I added an option to the selection converter which allows non-c elements, which cannot be converted, to be kept in the selection.
Comment 1 Sascha Radike CLA 2006-11-03 15:03:20 EST
Created attachment 53228 [details]
Patch
Comment 2 Anton Leherbauer CLA 2006-11-06 03:56:22 EST
Sounds reasonable. I'll have a look.
Comment 3 Anton Leherbauer CLA 2006-11-06 05:10:07 EST
Applied to 4.0 > 20061106. 
Thanks for the patch!
Comment 4 Sascha Radike CLA 2006-11-06 08:54:37 EST
Great :-) But why not apply to 3.1.2 ? I think this is more important for 3.1.2 than 4.0 anyway (since 4.0 might use the common navigator).
Comment 5 Anton Leherbauer CLA 2006-11-06 11:51:56 EST
You're right. Applied also to 3.1.2.
Comment 6 Doug Schaefer CLA 2006-11-06 14:08:21 EST
I have marked the clone of this bug as fixed. I'll leav this on 4.0 since it has the patch attached and I need it for the release review.