Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Package explorer not showing...packages, in Eclipse. How to fix it?

By some reason, it seems my Package Explorer is showing the folder structure of my project instead of its package structure. How would I go about "fixing" this? I've tried playing with the filters but it seemed of no avail.

Thanks!

like image 344
devoured elysium Avatar asked Nov 12 '11 20:11

devoured elysium


People also ask

How do I fix package explorer in Eclipse?

You could try holding down Ctrl + F7 to see a list of all views, then up/down arrow to the View. If Package Explorer is in the list it has been minimised or something. If you select it and still can't see it, try Window → Reset Perspective... to restore all views to their defaults.

How do I get packages in Eclipse?

You can add a new package in Eclipse by right-clicking on your project and selecting New > Package. Note that a package doesn't really exist until you create some class or interface in that package. The more logical way to do this is to simply define a package when creating a new class.

How do I toggle Package Explorer in Eclipse?

The Show View commands are activated by pressing Alt + Shift + Q , then the letter for the relevant view, eg. to navigate to the Package Explorer, press Alt + Shift + Q , P .

How do I enable project explorer in Eclipse?

In Eclipse, if the Project Explorer pane is not already open, click the Show View icon in the lower left corner of Eclipse, then click Project Explorer.


1 Answers

enter image description here

From the menu pointed in the image, setting Package Presentation as flat may solve your problem.

Edit: Pointed menu is also available in Package Explorer view.

like image 139
suat Avatar answered Oct 22 '22 08:10

suat