How to flatten packages in eclipse?

感情迁移 提交于 2019-12-10 17:48:10

问题


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

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!

Any suggestions?


回答1:


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

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.



来源:https://stackoverflow.com/questions/11935741/how-to-flatten-packages-in-eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!