RuneRebellion
RuneRebellion

Reputation: 149

Eclipse: add a package to a bunch of classes

Sorta like this question here (But using the solution supplied didn't exactly fix my issue)

I'm trying to rearrange a project that had all of its classes in the default package, but I don't want to go through refactoring every class there's about 450+

So how can I use eclipse to automatically put every class in a different package and automatically update the declared package?

Upvotes: 1

Views: 55

Answers (2)

I believe you right click the package -> refactor -> rename

Upvotes: 0

JBuenoJr
JBuenoJr

Reputation: 975

I believe you can just create your new package, select all the files you want to move and drag them to their new package. It should do the automatic refactor.

Upvotes: 3

Related Questions