Bug 362371 - Invalid Position returned when selecting whole C/C++ File in Explorer
Summary: Invalid Position returned when selecting whole C/C++ File in Explorer
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 7.0.2   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-28 16:48 EDT by Sebastien Dubois CLA
Modified: 2020-09-04 15:18 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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