在同一个项目中使用Eclipse和NetBeans [英] Using both Eclipse and NetBeans on the same project

查看:385
本文介绍了在同一个项目中使用Eclipse和NetBeans的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Eclipse是一个非常棒的编辑器,我更喜欢使用Eclipse,但Eclipse的GUI设计工具不足。另一方面,NetBeans在GUI设计方面表现非常出色。



在同一项目中使用NetBeans进行GUI设计和Eclipse的其他一切都有任何提示,技巧或陷阱吗?


$ b $编辑:我尝试过Maven,似乎没有任何工作(对我的需要太复杂)。

解决方案

使用Netbeans创建GUI。将Eclipse .project文件(如下所示)复制到项目文件夹中,以更改MyProjectName。打开Eclipse并将项目导入到您的工作空间中,以便您可以使用Netbeans从Eclipse工作区打开项目。现在,您可以使用Netbeans创建并更改GUI,并使用Eclipse编辑代码。

 <?xml version = 1.0encoding =UTF-8?> 
< projectDescription>
< name> MyProject< / name>
< comment>< / comment>
< projects>
< / projects>
< buildSpec>
< buildCommand>
< name> org.eclipse.jdt.core.javabuilder< / name>
< arguments>
< / arguments>
< / buildCommand>
< / buildSpec>
< natures>
< nature> org.eclipse.jdt.core.javanature< / nature>
< / natures>
< / projectDescription>


Eclipse is a really great editor, which I prefer to use, but the GUI design tools for Eclipse are lacking. On the other hand, NetBeans works really well for GUI design.

Are there any tips, tricks or pitfalls for using NetBeans for GUI design and Eclipse for everything else on the same project?

EDIT: I tried Maven, and it does not seem to work (too complex for my needs).

解决方案

Create your GUI with Netbeans. copy a Eclipse .project file (like below) into the project folder change the MyProjectName. Open Eclipse and import the project into your workspace, so you can open the projekt from your Eclipse workspace with Netbeans. Now you able to use Netbeans to create and change the GUI and editing the code with Eclipse.

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
 <name>MyProject</name>
 <comment></comment>
 <projects>
 </projects>
 <buildSpec>
  <buildCommand>
   <name>org.eclipse.jdt.core.javabuilder</name>
   <arguments>
   </arguments>
  </buildCommand>
 </buildSpec>
 <natures>
  <nature>org.eclipse.jdt.core.javanature</nature>
 </natures>
</projectDescription>

这篇关于在同一个项目中使用Eclipse和NetBeans的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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