Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] C++ sources in project root


I created an empty C++ project with no source folder. I put a wizard- generated C++ class into the root of the C++ project. I wrote a plugin that is trying to parse the children of the C++ project. I used CoreModel.getDefault().create(selectedFile) where selectedFile the C++ file within the C++ project is. Lets say selectedFile has the following path: L/Test/Simple.cpp

I was surprised that CoreModel.getDefault().create(selectedFile) returned null. When I put the C++ sources into a source folder CoreModel.getDefault().create(selectedFile) returned the desired ICElement. Should I use a different method than CoreModel.getDefault().create(selectedFile) on C++ source that are not located within a source folder?


Back to the top