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

Bug 164730

Summary: Allow clients to display non-ICElement objects in the CView
Product: [Tools] CDT Reporter: Warren Paul <warren.paul>
Component: cdt-coreAssignee: Project Inbox <cdt-core-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3    
Version: 3.1.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
patch file none

Description Warren Paul CLA 2006-11-15 19:16:24 EST
Can we change CView#selectReveal to work with non-ICElement files as well, such as IProject, IFile, IFolder (IResource)?
Comment 1 Warren Paul CLA 2006-11-15 19:20:01 EST
We have another projects view that gives the user a different view of the project contents.  We have a Show in C/C++ Projects action that we want the selected item(s) in our view to be revealed in the C/C++ Projects view.  It worked OK now for TranslationUnits and projects but not non-C IResources like just plain text files, or files whose content type is not tied to CDT.

The proposed patch it attached and seems to do the trick.
Comment 2 Warren Paul CLA 2006-11-15 19:21:41 EST
Created attachment 53948 [details]
patch file
Comment 3 Anton Leherbauer CLA 2006-11-16 02:57:43 EST

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