In eclipse, I would like to see packages as a folder structure rather than the flattened look provided by the Package Explorer
default settings, is there a way to do this?
Upon running Eclipse you should see a pane labeled 'Package Explorer', probably on the left. If you do not see one, you can open it up by going to the Window menu, selecting Show View and Package Explorer. If it doesn't show up under Show View, select Other, then 'Java', then 'Package Explorer'.
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. In the Project Explorer pane, right-click your project name, then click Properties.
To view the project explorer, click on Window menu then, click on Show View and select Project Explorer. There is simpler way to open project explorer, when you are in the editor press alt + shift + w and select project explorer.
Eclipse offers the Navigator
view which will display your project in the way you are asking. To open this view select Window > Show View > Navigator
.
Select the first package in the package explorer. Press Alt-Shift-N to open the new item context menu. Click "Package."
Make sure that the new package name is a sub-package of the original package. For example, if your original package is com.example
, the new package might be com.example.gui
.
EDIT: If you want to see the nested packages, Eugene says that you can do this:
Package Explorer / View Menu (Ctrl-F10) / Package Presentation... / Hierarchical
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