1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Bug 118887 - New Class wizard was allowing the project as a source folder, even if it wasn't. This causes a number of NPE reports and weird behavior.

This commit is contained in:
Doug Schaefer 2006-01-04 21:36:52 +00:00
parent 4e01b3df9a
commit 3f96a4af6c

View file

@ -124,9 +124,6 @@ public class NewClassWizardUtil {
ICContainer sourceFolder = getSourceFolder(elem);
if (sourceFolder != null)
return sourceFolder;
if (resType == IResource.PROJECT) {
return (ICContainer)elem;
}
}
} else {
return getSourceFolder(resource.getParent());