O'Reilly logo

NetBeans IDE 8 Cookbook by Rhawi Dantas, David Salter

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Move refactoring

In the previous recipe, we saw how it's possible to rename various artifacts of a Java project. Sometimes, however, we've named our objects correctly, but we've put them in the wrong place! NetBeans allows developers to perform a Move refactor where class members can be moved to different classes or classes can be moved to different projects and/or packages.

Getting ready

First we will need a Java project to perform some Move refactoring. We will use the same project from the preceding recipe, Rename refactoring, and so ensure that you have the project open from the end of that recipe. If you have not followed that recipe, the project is available from the code download bundle under the MoveRefactor folder in Chapter 3. When the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required