0

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?
ROMANIA_engineer
  • 54,432
  • 29
  • 203
  • 199
Stefan Falk
  • 23,898
  • 50
  • 191
  • 378

1 Answers1

1

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.

rlegendi
  • 10,466
  • 3
  • 38
  • 50
  • Hi @rlegendi ! Let's say I want to host my plugin later on somewhere, will Eclipse recognize the dependencies and e.g. hint the downloading user that my plugin requires the CDT-plugin? Okay, I assume that I can simply set the C/C++ nature provided by CDT-plugin and then modify it to my needs. Is that correct? – Stefan Falk Jul 17 '13 at 09:16
  • Yep, that's the way to do it :-) Though you'll need a feature and an update site for that too (easy to start them but you can spend ages figuring out configuration issues). Good luck with it! – rlegendi Jul 17 '13 at 14:13
  • Alright, this brought me on the right track but I seems that I can not simply extend the cnature (nature of CDT). Since I need to implement my own builder I am not quiet sure what CDT provides to make this simpler and what it does not provide. I want to use CDT and compile with SDCC. Do you have any advice for me? ^^ But thank you anyway - it truly put me on the right track... a very long track as it seems ^^ – Stefan Falk Jul 17 '13 at 14:24
  • 1
    You should get the source of CDT in the first place, then I found FAQ that may help you get started: http://cdt-devel-faq.wikidot.com/ Hope that helps. – rlegendi Jul 18 '13 at 13:16
  • Alright, thank you that looks helpful. I already found a SDCC Plugin for Eclipse http://sourceforge.net/projects/eclipse-sdcc/ which I'm afraid does not fullfill my needs completely - but anyway - I'm going to extend this plugin. Thanks for your help! – Stefan Falk Jul 19 '13 at 07:15