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

Rename refactoring

Sometimes, when developing applications, a developer's first choice of a name for a package, class, or member, and so on, isn't the best choice. NetBeans allows developers to easily change the name of these objects using the Rename refactoring wizard. This wizard is clever enough to change both the name of the selected object and any references to it throughout the project's code base.

Getting ready

First we will need to create a new project, so please refer to the recipes in Chapter 1, Using NetBeans Projects, for creating Java projects. We will use the same project for all the refactoring recipes in this chapter. When naming the project, enter Refactoring in the Project Name field and ensure that a main class called refactoring.Refactoring ...

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