1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-13 03:05:39 +02:00

Bug 305118: Add include for relative inclusion from different folder.

This commit is contained in:
Markus Schorn 2010-03-15 13:41:02 +00:00
parent e5da8307a0
commit 05957c8002

View file

@ -548,9 +548,7 @@ public class AddIncludeOnSelectionAction extends TextEditorAction {
}
}
}
if (k == 0) {
return null;
}
if (k != 0) {
Arrays.sort(ballotBox, 0, k);
String contender = ballotBox[0];
int votes = 1;
@ -569,6 +567,7 @@ public class AddIncludeOnSelectionAction extends TextEditorAction {
}
return new RequiredInclude(winner, systemIncludeVotes * 2 >= k);
}
}
// The file has never been included before.
URI targetUri = file.getLocation().getURI();