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!
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.
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.
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 .
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With