Eclipse中的项目目录结构问题
我面临这个奇怪的问题..当我从 svn 签出项目时,我的整个项目处于目录类型的结构中,
即。我的包就像(另一个文件夹内的文件夹)
MainProject
+
+
+++project_1_name
++++++++src
++++++++++++com
++++++++++++++公司名称
++++++++++++++++++++类名
+
+++project_2_name ++++++++src
++++++++++++com
++++++++++++++公司名称
++++++++++++++++++ClassName
但我希望它像
MainProject
+
项目_1_名称
+++++src.com.companyname.className
项目_2_名称
+++++src.com.companyname.className
当我在工作区上单独从主项目导入特定子项目时,该项目将显示为我所看到的包结构..我是第一次使用 eclipse 。 .请原谅我问这样愚蠢的事情..但是请帮助我
提前谢谢
I am facing this weird problem ..When i checked out project from svn my whole project was in directory kind of structure
ie. my package was like (folder inside another folder)
MainProject
+
+
+++project_1_name
++++++++src
++++++++++++com
++++++++++++++companyname
++++++++++++++++++ClassName
+
+++project_2_name
++++++++src
++++++++++++com
++++++++++++++companyname
++++++++++++++++++ClassName
but i want it to be like
MainProject
+
project_1_name
+++++src.com.companyname.className
project_2_name
+++++src.com.companyname.className
when i am importing a particular sub project from the main project separately on my workspace then the project is appearing as package structure as i see..I am using eclipse for the first time ..Kindly pardon me for asking some thing stupid like this ..But please help me
thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
结构/文件夹层次结构如预期,java包是一个文件夹。
在 Eclipse 的 Package Explorer 中,单击向下的类似箭头的小图标,然后选择 Package Presenter 'Flat' 或 'Hierarchical'。
也许您想要“Flat”。
The structure/folder hierarchy is as expected, a java package is a folder.
In Eclipse, Package Explorer, click on a small arrow-like icon pointing downwards and select Package Presentation 'Flat' or 'Hierarchical'.
Possibly you would like to have 'Flat'.
您的意思是您想要 Package Explorer 视图而不是 Navigator 视图吗?
窗口>显示视图> Package Explorer
或者您可能想要 Project Explorer 视图:
Window >显示视图> Project Explorer
这两个视图都具有“平面”和“分层”包样式。 “扁平”封装风格听起来正是您想要的。
Do you mean you want the Package Explorer view instead of the Navigator view?
Window > Show View > Package Explorer
Or maybe you want the Project Explorer view:
Window > Show View > Project Explorer
Either of those views has a "flat" and a "hierarchical" package style. The "flat" package style sounds like what you want.
当您从 SVN 导入项目时,选择基本 url 后,应选中“在所选资源的子级中查找项目”框。
When you import projects from SVN, after selecting the base url, you should check the "find projects in the children of the selected resource" box.