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
- One class or interface is selected.
Pre-Checks
Parameters
- New name of class
- Target folder
Fast Parameters Check
- [4.2]Error: This class already exists in target package.
Parameters Check
- Warning: Class you want to copy uses package private features from original package.
Changes To Be Made
- Resource is copied into target package.
- Class is renamed to match Resource name.
- 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: ___________________\/ |
| |
----------------------------------------