I've been searching high and low for an answer. Thanks.
Since all packages are global in scope, nesting of packages is not supported. However, you can have two packages, one called A and another called A::B , to give an illusion of nesting.
Select the package in the project explorer, press Ctrl+C and then Ctrl+V, Eclipse will prompt with a package name conflict warning and ask you to enter a new package name. Just enter it and Eclipse will repackage all copied classes accordingly.
If you are creating a sub package, before opening the Java Package wizard select the parent package so that name field can have a default value in it.
Open the view menu in Package Explorer. There you can change Package Presentation from Flat to Hierarchical. I guess this is what you're looking for.
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