简体   繁体   English

Eclipse插件开发:使插件依赖CDT插件

[英]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). 我正在编写一个要使用CDT插件的插件(因为我不想实现自己的全新C / C ++编辑器)。

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. 对于第一个问题,只需将CDT插件添加到项目的“ 必需”插件中即可。 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. 您可能要搜索的是您要以编程方式为项目设置的C ++性质。 Simply search the nature's ID in the .project file of a C++ project, then you can start looking into the details. 只需在C ++项目的.project文件中搜索自然的ID,即可开始查看详细信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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