简体   繁体   中英

How can I parse both Java and C++ in Eclipse?

On the Eclipse homepage, I see two versions -- Eclipse for C++ developers and Eclipse for Java developers. I'm working on a project that combines both Java and native C++ code. I am using the Java version, and when I open one of the C++ files, not only is it not parsed, but it opens the file in an external editor. I'm probably missing something simple, but how do I get Eclipse to work with both types of source files? Is there a combined Eclipse package for this? Thanks.

Eclipse is fully plugin based. Just go to Help -> Install new Software and select the Indigo (or whatever version you are using) update site. Then go to Programming languages and select the C/C++ tools you want to install. The different downloads from the Eclipse website are basically just preconfigured plugin bundles and you can always add anything you are missing from the plugin manager.

You can install the missing functionality with adding the appropriate plugins.

http://eclipse.org/cdt/

You can download the C++ views from a Java version of Eclipse, the same way you would download any packages. They are two different 'views' though so I don't think you can look at code for both in the same project view.

This explains it http://www.venukb.com/2006/08/20/install-eclipse-plugins-the-easy-way/

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