开发者

Project Directory Structure Problem in 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 anoth开发者_如何学JAVAer 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


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'.


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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜