1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 01:36:01 +02:00

Bug 193843 - fix missing non C resources in non Source Root containers.

This commit is contained in:
Doug Schaefer 2007-06-25 16:08:19 +00:00
parent 7dbd86677c
commit b13904bb50

View file

@ -57,8 +57,6 @@ public class CContainerInfo extends OpenableInfo {
ISourceRoot root = null;
if (celement instanceof ISourceRoot) {
root = (ISourceRoot)celement;
} else {
return new Object[0]; // should not be. assert
}
try {
@ -92,7 +90,7 @@ public class CContainerInfo extends OpenableInfo {
}
case IResource.FILE: {
String filename = member.getName();
if (CoreModel.isValidTranslationUnitName(cproject.getProject(), filename)
if (root != null && CoreModel.isValidTranslationUnitName(cproject.getProject(), filename)
&& root.isOnSourceEntry(member)) {
continue;
}