如何在eclipse中弄平软件包? [英] How to flatten packages in eclipse?

查看:92
本文介绍了如何在eclipse中弄平软件包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Eclipse 4.2 Juno中创建扁平化的项目层次结构-这是撰写本文时的最新版本.

I'm trying to create a flattened project hierarchy in eclipse 4.2 Juno - this is the latest version at time of writing.

我已经在 Package Explorer 中启用了 Package Presentation-> Flat ,但这没有什么区别,视图仍然是分层的.

I've enabled Package Presentation -> Flat in Package Explorer yet this has made no difference, the view is still hierarchical.

我找不到任何可提供改进的程序包导航体验的插件.我只希望获得最有效的配置,即无需不必要点击扩展/折叠箭头的布局!

I cannot find any plugins which offer an improved package navigation experience. I simply desire the most productive configuration, i.e. a layout with no unnecessary clicking of expand/collapse arrows!

有什么建议吗?

推荐答案

原来,'Flat'选项不起作用,因为该项目在Eclipse看来不是Java项目.

Turns out the 'Flat' option wasn't working because the project wasn't a Java project in eclipse's eyes.

我刚刚从我们的SCM(svn)中签出了一个Maven项目.我注意到 Package Explorer 中的项目文件夹图标上没有'J'.然后,我做了右键->配置->转换为Maven项目进行修复.

I'd just checked out a Maven project from our SCM (svn). I noticed there was no 'J' on the project folder icon in Package Explorer. I then did Right-Click -> Configure -> Convert to Maven Project to fix.

这篇关于如何在eclipse中弄平软件包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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