mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-13 11:15:38 +02:00
Bug 305118: Add include for relative inclusion from different folder.
This commit is contained in:
parent
e5da8307a0
commit
05957c8002
1 changed files with 17 additions and 18 deletions
|
@ -548,9 +548,7 @@ public class AddIncludeOnSelectionAction extends TextEditorAction {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (k == 0) {
|
if (k != 0) {
|
||||||
return null;
|
|
||||||
}
|
|
||||||
Arrays.sort(ballotBox, 0, k);
|
Arrays.sort(ballotBox, 0, k);
|
||||||
String contender = ballotBox[0];
|
String contender = ballotBox[0];
|
||||||
int votes = 1;
|
int votes = 1;
|
||||||
|
@ -569,6 +567,7 @@ public class AddIncludeOnSelectionAction extends TextEditorAction {
|
||||||
}
|
}
|
||||||
return new RequiredInclude(winner, systemIncludeVotes * 2 >= k);
|
return new RequiredInclude(winner, systemIncludeVotes * 2 >= k);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// The file has never been included before.
|
// The file has never been included before.
|
||||||
URI targetUri = file.getLocation().getURI();
|
URI targetUri = file.getLocation().getURI();
|
||||||
|
|
Loading…
Add table
Reference in a new issue