简体   繁体   中英

Eclipse Plugin Development: Make plugin dependent on CDT-plugin

I am writing a plugin which I want to use the CDT-plugin (since I don't want to implement my own brand new C/C++ editor).

Questions:

  • How is it possible to set the dependencies of my plugin to this particular editor
  • How can I set this editor as a nature of this project?

Fro your first question, simply add the CDT plugins to your Required plug-ins of your project. Details here .

Editors and natures are different things, you cannot set an "editor as a nature" . Probably what you're searching for is the C++ nature you want to set for a project programmatically. Simply search the nature's ID in the .project file of a C++ project, then you can start looking into the details.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM