Eclipse plug-in: How to make a plugin communicate with CDT - eclipse-plugin

I would like to augment Eclipse CDT with my own plugin, without touching to CDT source file.
For instance I would like to build a unit test generator wizard.
This wizard has to automatically detect the types of variables tested using the CDT parser.
Does Eclipse CDT provide an API for that?
Is there a documentation for it?

here you can find the CDT Plug-in developer guide. It's a good point to start :)
saluti

Related

Integrate CDT fuctionality to Eclipse Product

I have created an Eclipse plugin that shows an XML file as a tree(a simple functionality). I can export a product with this plugin integrated without any problems.
However, I would like to add CDT support to this product as well to get a product with both my own plugin and CDT capabilities.
I tried to export my plugin as an Eclipse feature or p2 repository and install it into a CDT product. Although it works, if users go to "Help -> About Eclipse IDE", they can see the information about "Eclipse IDE for C/C++ Developers". I want the CDT and my plugin to be a part of the final product so that I can change product settings like its splash screen, not my plugin be a part of CDT if that makes any sense.
I also tried to add all the CDT-related plugins to the dependencies of product, feature, and plugin but could not get it to work.
Moreover, I thought about developing the CDT and changing the source code but I would like to consider this as a last resort.
How can I achieve such a goal? Is there anything that I have missed during the process? Is there any alternative way to tackle such a problem?
Thanks in advance

how can i install the CDT plugins in eclipse windows7

I'm working in eclipse, which has Java, PHP, ant, XML
Now I need to work with C++(cygwin/CDT). So how can I add it to eclipse?
I downloaded "eclipse-SDK-4.2-win32" and installed it, but it doesn't show php plugins, though I need to work with PHP and C++.
I searched on the net to install the CDT, and its installed, I think but its not showing CDT plugins.
I've been trying to install the plugin for three days, I believe it's installed but not showing plugin CDT.
My task is Cygwin based, I need to get this to work this because I am very new to this job.
This might help, regarding the CDT part:
http://www3.ntu.edu.sg/home/ehchua/programming/howto/EclipseCpp_HowTo.html
Once installed, CDT provides a specific perspective you can use to write, compile and execute C and C++ programs.
Note it's not enough to just install this Eclipse plugin: a C/C++ compiler must also be installed separately, as described in the above link.
for PHP, you need another plugin, called PDT :
http://projects.eclipse.org/projects/tools.pdt

eclipse cdt - 2 ways to install it, confused about them

i go to eclipse download website
i find Eclipse CDT - a version of eclipse that is standalone
in my standard Eclipse SDK(not cdt)
i can do this:
Help->install new software-> then i get a window popup and ask me to give the url
it looks like this:
so then you can install it
this is a separate standalone Eclipse CDT :
this is a standalone Eclipse SDK:
my question is:
1.what is the difference between separate Eclipse CDT and installing CDT plugin onto Eclipse SDK OR are they same thing?
2. what is better? is it better to use a separate Eclipse CDT or just install a plugin inside my Eclipse SDK?
thanks in advance!
Short answer: there is no important difference[1] between the two.
Longer answer: The Eclipse IDE is nothing more than a bunch of plugins that work together to create the functionality for code editing (and other things).
When you go to http://eclipse.org/downloads, you'll see a bunch of different packages. Each package provides a certain set of features, but this is no more than a convenience so that you don't have to install the vanilla SDK and then install the stuff that you really need on top of that. The php dev will not need the C++ compiler and vice-versa. But, you can install it if you want. At it's core, the same small set of plugins are re-used between all distributions.
You can compare the different distributions here: http://www.eclipse.org/downloads/compare.php
[1]: Actually, the difference is that the SDK includes source code for all features as well as the Java compiler and plugin development tools. The C++ tools do not include these.

Openlaszlo in Eclipse

Can anybody tell me how to add the openlaszlo plugin to the eclipse or any IDE for openlaszlo ?
Thank you!
IDE4Laszlo - http://wiki.openlaszlo.org/IDE4Laszlo - an Eclipse-based development environment for creating, editing, debugging, and testing applications based on the LZX declarative mark-up language.
Also check https://stackoverflow.com/a/11676129/363075 for details of other development tools for OpenLaszlo.
I would use the Spket IDE plugin. It has some support for Laszlo, and I've used it in projects. The old IBM IDE project has been discontinued back in 2006. The Eclipse Update Site for Spket is http://www.agpad.com/update.
If you would rather use an XML Schema file with Eclipse, there is an Ant build script capable of generating a custom XSD file for your application. See the OpenLaszlo Schema Generator site for more info.

Is there an eclipse plugin for Play2?

I know there is one for play1, but I don't find any for play2.
I hope the plugin can compile the templates to scala code automatically. It's not convenient now.
I just came across Scala IDE Play2 plugin for Eclipse Indigo/Juno and Scala IDE. The current features are
Syntax Highlighting (routes and templates)
Code completion (templates)
Formatter (routes)
Hyperlinking (routes and templates)
Note that hyperlinking to Java files is not supported for now. Also there are some limitations for the code completion feature, just take some time to read the doc. I didn't try it myself as I'm not working with Play2 right now, but thought it might be helpful for someone.
Edit: This answer is outdated. A Play Eclipse plugin has been written, as #Baztoune says.
There is no Play 2 plugin for Eclipse at the time I’m writing these lines. However, there is an eclipsify sbt command, provided by the Play 2 sbt plugin, which is able to generate an Eclipse project from a Play 2 application.
You won’t get syntax highlighting, contextual completion or code navigation inside Play 2 templates, but you can have them to be automatically compiled when saved by using the ~run sbt command (instead of just run). Check the Eclipse “General −> Workspace −> Refresh using native hooks or polling” option is enabled so it will take compiled templates changes into account.
Yes, here's how to get started:
Find the correct update site for your version of Eclipse from http://scala-ide.org/download/current.html.
In Eclipse go to Help->Install New Software. Use the update site from above to locate Scala related plugins.
Install both the Scala IDE for Eclipse plugin and the Play2 support in Scala IDE plugin. Note that the Play2 support in Scala IDE plugin is listed under the Scala IDE plugins checkbox.
I was unable to get this working at all starting from bare Eclipse, as many sources have suggested doing. The problem seems to be incompatible dependencies that only show up after much wasted time. The Scala IDE route eliminated this problem.
Yes. That's Scala IDE.
Update Site for Eclipse Juno and Kepler: http://download.scala-ide.org/sdk/e38/scala210/stable/site
Install with the following features:
Scala IDE for Eclipse
Scala IDE Plugins (incubation)
I use Scala IDE from http://scala-ide.org/ , then eclipsify my play2 project and import.
It works like a charm: it compiles my scala/java code.
You can get more details at this URL http://scala-ide.org/docs/tutorials/play20scalaide20/index.html