Community
Participate
Working Groups
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