cornercorner
FeaturesPluginsDocs & SupportCommunityPartners

Copy Class Refactoring Specification

Author: Jan Becicka
CVS history

This refactoring feature allows to copy an existing class or interface.
Implementation of this refactoring is tracked in issue 56015.

Pre-Conditions

  1. One class or interface is selected.

Pre-Checks

Parameters

  1. New name of class
  2. Target folder

Fast Parameters Check

  1. [4.2]Error: This class already exists in target package.

Parameters Check

  1. Warning: Class you want to copy uses package private features from original package.

Changes To Be Made

  1. Resource is copied into target package.
  2. Class is renamed to match Resource name.
  3. Imports are fixed if necessary.

Checks During Changes Preparation

No specific checks.

Refactoring UI

Menu item: Copy Class...
Action title: Copy Class - org.netbeans.test.Test

UI will be similar to Move Class Refactoring UI - see UI design of refactoring features.

----------------------------------------
|                                      |
| New Name: _______________________    |
| Project:  _____________________\/    |
| Location: _____________________\/    |
| To Package: ___________________\/    |
|                                      |
----------------------------------------
Companion
Projects:
MySQL Database Server   GlassFish Community: an Open Source Application Server   Open Solaris  Open JDK: an Open SourceJDK   Mobile & Embedded Community     Sponsored by 
Sponsored by Sun Microsystems