Eclipse 中是否可以同时使用 CDT 和 Java IDE?
我已经启动并运行了一个 Eclipse CDT 环境,并且按照我喜欢的方式进行了自定义。我还将重点关注 Java。
我不想仅仅为了获得 Java 功能而安装单独版本的 Eclipse,因为我将在 C -> Java 之间切换。 C++->艾达-> Java 经常使用。因此,我希望有一个 IDE 能够支持所有语言。
目前我已经让 C/C++ 和 Ada 一起工作(CDT + GNAT 工作台)。
如何安装 Eclipse Java 支持而不需要再次从头开始安装 Eclipse?
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.
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.
At the moment I've got C/C++ and Ada working together (CDT + GNAT workbench).
How can I get the Eclipse Java support installed with out installing Eclipse from scratch again?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我已经将两者安装在一起,没有任何问题。事实上,我让 JDT、CDT、PyDev 一起工作,有时我什至有包含所有三种语言代码的项目,而且一切都运行得很好。如果您正确订购了构建器,则所有应该为其他人准备好的部件都已准备好。 (我有一个用 C++ 实现的 API,并在同一个项目中支持 Java、Python 和 C++)。
然而,由于您已经按照您想要的方式运行了设置,所以我强烈建议您备份 Eclipse 的安装以及工作区中的 .metadata 文件夹(当我像这样修改 Eclipse 时,我通常只是压缩整个工作区)
然后您可以进入插件管理器并让 JDT 插件从更新站点自行安装。坦率地说,我预计您不会遇到任何问题。您可以使用不同的工作区来分离 CDT 和 Java,但除非您确实需要这种明确的分离,否则我建议您在同一工作区下执行所有操作。在 Eclipse 中切换工作区几乎意味着您必须启动它的一个新实例,并进行所有加载和等待。
在同一项目中混合语言类型可能需要您手动修改 Eclipse 项目文件。有时,GUI 不会为您提供同一项目的多个方面。否则从一种语言切换到另一种语言是透明的。您可以切换视角,也可以仅使用您想要的视图构建自己的视角。同样,将 CDT 的视图与其他语言/插件的视图混合匹配也没有问题。
这可能是Eclipse最大的优势,无论你在做什么工作,都提供一个统一的开发环境。话虽如此,并非所有语言都得到同等支持,对您来说好消息是 Java 插件比 CDT 更加丰富和成熟。
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).
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)
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.
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.
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.