1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 06:32:10 +02:00

Bug 269484 #selectFile should consider first file

This commit is contained in:
James Blackburn 2009-03-20 21:29:55 +00:00
parent eef558181f
commit 6bfad895fb

View file

@ -102,7 +102,7 @@ public class ResourceLookup {
IFile best= null;
int bestRelevance= -1;
for (int i = 1; i < files.length; i++) {
for (int i = 0; i < files.length; i++) {
IFile file = files[i];
if (file.isAccessible()) {
int relevance= FileRelevance.getRelevance(file, preferredProject);