changing package name

I would like to change a package name from:

poorlyNamedPackageName

to

com.better.package.name

i attempted to do this using the rename refactoring, but as soon as i
typed the "." idea seemed to see this as invalid...

How is this done?

1 comment
Comment actions Permalink

Renaming a package only allows you to change it's last component. First you need to move it (using the Move refactoring) to com.better.package and then rename it to name.

Yes, it's confusing.

0

Please sign in to leave a comment.