Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Get Active Project

I'm building a plugin that will parse and generate KConfig menus inside Eclipse. Sadly, I won't be able to push this to CDT, since it requires the Antlr runtime library (BSD license). I'm going to try, however, to make it an open plugin for the community. However, I'm stuck on one final request that's been given me. My C developers want kconfig to load automatically from the selected project. "Hey, no problem, that's easy," I thought to myself. Now I'm running down a rabbit hole. I have no idea where I pick up the location of the selected project. I've tried looking at the BuildAction to get an idea, since that is linked to the active project, but that chooses which projects have build configurations, and sorts from there, which doesn't help me. I've googled around and seen to use the selection service, but that always comes back null. So, since I know CDT is, at times, liking to the project selected in the project explorer window, can you tell me where I can pull that information, or point me somewhere in the CDT code where that information is being pulled?
Thanks,
Jason

Back to the top