This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 108372

Summary: Missing API for Java specific refactorings
Product: java Reporter: Jan Becicka <jbecicka>
Component: RefactoringAssignee: Jan Becicka <jbecicka>
Status: RESOLVED FIXED    
Severity: blocker CC: emononen, jbecicka, jpokorsky, ppisl, sandipchitale, sonali, tboudreau
Priority: P2 Keywords: API, API_REVIEW_FAST
Version: 6.x   
Hardware: All   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 112270    
Bug Blocks:    

Description Jan Becicka 2007-06-28 10:32:09 UTC
Refactoring API is too general for (some) Java specific use cases.
Refactoring/java must provide Java-specific API extension to general Refactoring API.
Comment 1 Jan Becicka 2007-07-25 14:46:33 UTC
API is available in refactoring/java module.
I'd like to make following packages public:
org.netbeans.modules.refactoring.java.api
org.netbeans.modules.refactoring.java.api.ui
org.netbeans.modules.refactoring.java.spi
org.netbeans.modules.refactoring.java.spi.ui

This is not a brand new API. This API is Java specific extension to current Refactoring API describing Java specific
Refactorings (Encapsulate, Extract SuperClass, Extract Interface, Inner To Outer Refactoring, Pull Up, Push Down and
Change Method Parameters) + common utility classes useful for further refactoring features.

This API will be under development.
Comment 2 _ tboudreau 2007-07-25 15:53:59 UTC
Out of curiousity, does it include any of the patches I gave you a month or two ago?  Specifically the Action subclass seems like it would be genuinely useful 
and save a bunch of work for refactoring writers; the other parts are nice-to-have but less important.
Comment 3 Jan Becicka 2007-07-25 21:27:30 UTC
tboudreau: Yes it does. It includes your action and also reduced version of JavaRefactoringUtils.
Comment 4 _ tboudreau 2007-07-25 21:54:50 UTC
Great!  Looking forward to it and to getting back to working on refactorings!
Comment 5 Jan Becicka 2007-08-08 08:33:01 UTC
Reassigning back. Will commit as soon as issue 112270 will be resolved.
Comment 6 Jan Becicka 2007-08-21 14:39:40 UTC
Checking in project.xml;
/cvs/refactoring/java/nbproject/project.xml,v  <--  project.xml
new revision: 1.12; previous revision: 1.11
done