Bug 278170

Summary: [introduce factory] Enable "Introduce Factory" for static nested classes
Product: [Eclipse Project] JDT Reporter: Mauro Molinari <mauromol>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3 CC: alishah_ph, markus.kell.r
Version: 3.4.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Mauro Molinari CLA 2009-05-28 04:29:38 EDT
I was wondering if there is any reason for which the "Introduce Factory" refactoring has been disabled for nested classes, I mean static nested classes (not non-static inner classes).

It would be very useful to have it enabled.
Comment 1 Markus Keller CLA 2009-05-28 06:09:24 EDT
There's no particular reason other than that it has just not been implemented so far.
Comment 2 Ali CLA 2013-03-01 06:58:41 EST
Hi Markus and Fuhrer,

It's been a long time that this issue (allowing introduce factory refactoring on  nested types) has not been resolved. Can you please explain a few difficulties or challenges in the implementation of this feature? I have to add the reason in my thesis, as I'm using the Introduce Factory refactoring in my project and have to skip the nested types. Many thanks. 

Cheers, Ali
Massey University, 
New Zealand.
Comment 3 Markus Keller CLA 2013-03-01 08:31:29 EST
I don't expect this to be difficult or challenging. It's just not been fixed due to lack of resources and because nobody has attached a good quality patch.