We have a simple java project in eclipse and we have migrated package name for an already existing source code. Is there a shortcut for changing package name declarations while you are inside the code editor
Select the package name, and use Refactor -> Rename
(Shift+Alt+R) to open the Rename Package dialog
Refactoring is the best way, however be wary of changing package names if your source is under version control. I've had all sorts of conflict, update issues with changing package names because of the sequence of commits done (to SVN). It does work, just can be tricky to get everything commited correctly and the repository and working directory correctly in sync.
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