问题
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
回答1:
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'.
回答2:
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.
回答3:
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.
来源:https://stackoverflow.com/questions/5718878/project-directory-structure-problem-in-eclipse