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

Bug 362371

Summary: Invalid Position returned when selecting whole C/C++ File in Explorer
Product: [Tools] CDT Reporter: Sebastien Dubois <sebastien.dubois>
Component: cdt-coreAssignee: Project Inbox <cdt-core-inbox>
Status: NEW --- QA Contact: Jonah Graham <jonah>
Severity: normal    
Priority: P3    
Version: 7.0.2   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Sebastien Dubois CLA 2011-10-28 16:48:54 EDT
When selecting a whole file in the CDT project explorer and trying to extract the position of the start end end of the files, using org.eclipse.cdt.core.model.ISourceReference#getSourceRange() the position returned always 0.  THis behavious is different than e.g. in JDT where the start and end position of the file are returned.  Take note that when selecting a sub-element in the file tree (e.g. Class, field, function etc.), then the position is correctly returned