mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 17:56:01 +02:00
Bug 193843 - fix missing non C resources in non Source Root containers.
This commit is contained in:
parent
7dbd86677c
commit
b13904bb50
1 changed files with 1 additions and 3 deletions
|
@ -57,8 +57,6 @@ public class CContainerInfo extends OpenableInfo {
|
||||||
ISourceRoot root = null;
|
ISourceRoot root = null;
|
||||||
if (celement instanceof ISourceRoot) {
|
if (celement instanceof ISourceRoot) {
|
||||||
root = (ISourceRoot)celement;
|
root = (ISourceRoot)celement;
|
||||||
} else {
|
|
||||||
return new Object[0]; // should not be. assert
|
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -92,7 +90,7 @@ public class CContainerInfo extends OpenableInfo {
|
||||||
}
|
}
|
||||||
case IResource.FILE: {
|
case IResource.FILE: {
|
||||||
String filename = member.getName();
|
String filename = member.getName();
|
||||||
if (CoreModel.isValidTranslationUnitName(cproject.getProject(), filename)
|
if (root != null && CoreModel.isValidTranslationUnitName(cproject.getProject(), filename)
|
||||||
&& root.isOnSourceEntry(member)) {
|
&& root.isOnSourceEntry(member)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue