Custom plugin override Import
已完成
Hello,
I have C++ project defined through files named "Project.xml" (always the same name). I have developed java code to create a CMakeLists file from those these.
In a plugin, I would like to override the default Import feature to behave like this:
- if the selected import target is a file named "Project.xml" :
- run a custom feature to create the CMakeLists file
- import the project from the created CMakeLists file
- call a custom method with the created project as parameter to persist some values at project level
- otherwise let CLion process his default import project feature
Is this possible, where to start?
The plugin targes only CLion if that has an impact.
请先登录再写评论。
If anyone interested here is the procedure:
Create a class inheriting ProjectOpenProcessor
Add the following to plugin.xml