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:
parent
4e01b3df9a
commit
3f96a4af6c
1 changed files with 0 additions and 3 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Reference in a new issue