|
|
Re: How to automatically correct all class' package declarations [message #525846 is a reply to message #525666] |
Wed, 07 April 2010 20:31  |
Eclipse User |
|
|
|
Vinicius Isola wrote:
> - Create the package they should be in. - Copy all of them inside it
> (better do that outside Eclipse)
> - Move them to the package you want to change them to.
>
> OR
>
> You could just move them around to some other package and then move them
> back to the package they should be in.
>
> I recommend using the first method because the second one include
> refactoring classes with compile errors. That could cause unpredictable
> results.
Hm, I think you can just right-click on the package in Package Explorer and
select "Refactor -> Rename". It will generally do the right thing, although you
should check to make sure that references in strings (for instance, if you are
loading classes reflectively) get properly fixed up.
|
|
|
Powered by
FUDForum. Page generated in 0.03951 seconds