Eclipse JDT: Is there a refactoring to replace direct field accesses with setter/getter methods?

Viewed 2792

I know I can generate setters and getters for fields in the Eclipse source menu, but I'm very surprised it doesn't offer to replace the direct field accessors with calls to the newly created methods.

Does anyone know how to do this short of manual search and replace?

Thanks!

1 Answers
Related