是否可以在Eclipse中将CDT和Java IDE结合在一起? [英] Is it possible to have CDT and Java IDE together in Eclipse?

查看:134
本文介绍了是否可以在Eclipse中将CDT和Java IDE结合在一起?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经启动并运行了Eclipse CDT环境,并按照我喜欢的方式进行了自定义。我也将大量处理Java。

I have an Eclipse CDT environment up and running and customised just the way I like it. I'm also going to be heavily dealing with Java.

我不想仅仅为了获得Java功能而安装单独版本的Eclipse,因为我将在C - > C ++ - > ADA - >之间切换。 Java经常出现。因此,我希望一个IDE支持所有语言。

I don't want to install a separate version of Eclipse just to get the Java features, as I'll be switching between C -> C++ -> ADA -> Java quite often. Because of this I'd like the one IDE to support all the languages.

目前我已经有C / C ++和Ada一起工作(CDT + GNAT工作台)。

At the moment I've got C/C++ and Ada working together (CDT + GNAT workbench).

如何在不再从头开始安装Eclipse的情况下安装Eclipse Java支持?

How can I get the Eclipse Java support installed with out installing Eclipse from scratch again?

推荐答案

我已经安装在一起没有问题。事实上,我有JDT,CDT,PyDev并排工作,有时我甚至有包含来自所有三种语言的代码的项目,这一切都只是花花公子。如果您正确地为建造者订购了所有应该为其他人准备好的位。 (我在同一个项目中使用C ++实现了一个API,支持Java,Python和C ++。)

I've had both installed together without problems. In fact I had the JDT, CDT, PyDev all working side by side sometimes I even had projects containing code from all three languages and it all worked just dandy. All the bits that were supposed to be ready for the others were provided you order your builders correctly. (I had an API implemented in C++ with support for Java, Python and C++ all in the same project).

但是,因为你已经让你的设置运行了您希望我强烈建议您在工作区中备份Eclipse和.metadata文件夹的安装(当我修改Eclipse时,我通常只是压缩整个工作区)

However since you already have your set-up running just the way you want I would strongly recommend that you would backup your installation of Eclipse AND your .metadata folder in your workspace (I usually just zip the whole workspace when I tinker with Eclipse like that)

然后你可以进入你的插件管理器并获得JDT插件来从更新站点安装自己。坦率地说,我不认为你会遇到任何问题。您可以使用不同的工作区来分隔CDT和Java,但除非您真的需要这种明确的分离,否则我建议您在同一工作区下执行所有操作。在Eclipse中切换工作区几乎意味着你必须使用所有加载来启动它的新实例并等待这意味着。

Then you can just get in your plugin manager and get the JDT plugin to install itself from the update site. Frankly I do not anticipate that you will get any problems. You can use different workspaces to separate CDT and Java but unless you really need this clear separation I would recommend that you do everything under the same workspace. Switching workspace in Eclipse pretty much means you have to launch a new instance of it with all the loading and waiting this implies.

在同一个项目中混合语言类型可能需要你手动修改eclipse项目文件。有时,gui不会为您提供相同项目的多个方面。否则,从一种语言切换到另一种语言是透明的。您可以切换透视图,也可以只使用所需的视图构建自己的透视图。同样,CDT的混合匹配视图与来自其他语言/插件的视图没有问题。

Mixing language types in the same project might require that you tinker with the eclipse project files manually. Sometimes the gui will not offer you to have multiple aspects for the same projects. Otherwise switching from one language to the other is transparent. You can switch perspective or you can build your own perspective with just the views you want. Again there was no problem mix-matching views from CDT with views from other languages/plugins.

这可能是Eclipse的最大优势,提供统一的开发环境,无论你正在做的工作。话虽如此,并非所有语言都得到同等支持,对你来说好消息是Java插件比CDT更加丰富和成熟。

This is probably the biggest strength of Eclipse, Provide a unified development environment regardless of the work you are doing. This being said, not all language are supported equally, good news for you is that the Java plugin is a lot more rich and mature than the CDT.

这篇关于是否可以在Eclipse中将CDT和Java IDE结合在一起?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆