Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 496
Anupam Gupta Avatar asked Apr 19 '11 15:04

Anupam Gupta


2 Answers

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

like image 158
Kennet Avatar answered Sep 30 '22 07:09

Kennet


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.

like image 20
Isaac Truett Avatar answered Sep 30 '22 07:09

Isaac Truett