是否可以在 Eclipse 中对项目进行分组?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2173439/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Is it possible to group projects in Eclipse?
提问by Hemeroc
Is it possible to group projects in Eclipse? Or maybe have a project with sub-projects?
是否可以在 Eclipse 中对项目进行分组?或者也许有一个带有子项目的项目?
回答by Carl Smotricz
Eclipse offers working sets. You can reduce the projects shown in the Package Explorer and other places to whichever projects you defined into the working set. You can also show the union of various sets, and similar gymnastics.
Eclipse 提供工作集。您可以将 Package Explorer 和其他位置中显示的项目减少到您定义到工作集中的任何项目。您还可以展示各种组合和类似体操的结合。
You can define/edit/delete working sets from the little triangle dropdown menu on the Package Explorer and similar directory views.
您可以从包资源管理器和类似目录视图上的小三角形下拉菜单中定义/编辑/删除工作集。
回答by Manrico Corazzi
You have two options, as far as I know:
据我所知,您有两种选择:
use the already suggested Working Set option: you can create custom groups, use them to focus on a particular area of a project, activate them through Mylin; a really powerful tool indeed
use the basic concept of workspace which allows you to work on many projects and relate them (via the Build path "Projects" tab, and "Java EE Module Dependencies") so that when you need resources from other projects or you need to deploy them along with your main web application Eclipse will do that for you
使用已经建议的工作集选项:您可以创建自定义组,使用它们专注于项目的特定区域,通过 Mylin 激活它们;确实是一个非常强大的工具
使用工作区的基本概念,它允许您处理许多项目并将它们关联起来(通过构建路径“项目”选项卡和“Java EE 模块依赖项”),以便在您需要来自其他项目的资源或需要部署它们时与您的主要 Web 应用程序一起,Eclipse 将为您完成
回答by Manrico Corazzi
Using Working Sets
, you can add and organize them as shown in the picture :
使用Working Sets
,您可以添加和组织它们,如图所示:
As you can see my Java projects are in Working sets like Sem1
and TPs
.
正如您所看到的,我的 Java 项目在工作集中,例如Sem1
和TPs
。
When you create an all new Project, just add the project to your working set, like this :
当您创建一个全新的项目时,只需将该项目添加到您的工作集中,如下所示:
回答by julius
What about eclipse working sets? You define a working set and then add some projects to it. Later you could select a working set and only the projects you selected earlier are shown in project explorer. Simpl grouping to reduce clutter.
日食工作集怎么样?您定义一个工作集,然后向其中添加一些项目。稍后您可以选择一个工作集,并且只有您之前选择的项目会显示在项目资源管理器中。简化分组以减少混乱。
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.platform.doc.user/concepts/cworkset.htm
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.platform.doc.user/concepts/cworkset.htm
回答by Mickael
Since Eclipse Mars M5, you can see a hierarchical view of nested projects in the Project Explorer view. In the view menu, click "Projects Layout > Hierarchical". https://www.eclipse.org/mars/noteworthy/#_nested_hierarchical_view_of_projects
从 Eclipse Mars M5 开始,您可以在 Project Explorer 视图中看到嵌套项目的分层视图。在视图菜单中,单击“项目布局 > 分层”。https://www.eclipse.org/mars/noteworthy/#_nested_hierarchical_view_of_projects
回答by user3461121
Working sets are great, but they don't work if the projects in one working set has the same name as in another, and such occurs in some TI C2000 chip examples that are in different directories.
工作集很好,但如果一个工作集中的项目与另一个工作集中的项目同名,它们就不起作用,这种情况出现在不同目录中的一些 TI C2000 芯片示例中。