Community
Participate
Working Groups
I would like to have an extract class refactoring do that I can extract inner classes or anonymous classes.
for consideration after 2.0
I hope I'm not overstepping bounds by attempting to summarize here various requests found in bugzilla about refactoring inner or nested classes. There are at least 5 feature requests that are related to this: Bug 6502, Bug 10604, Bug 10659, Bug 12082, Bug 12414. It wouldn't surprise me if one or more of these are declared duplicates. Here is what people are asking for (I believe): (A) Promote static inner class to own compilation unit (Bug 6502, Bug 10604?, Bug 12082, Bug 12414) (B) Promote anonymous class to own compilation unit. (C) Promote named inner class to outer class is same compilation unit (Bug 10604 alternate interpretation). (D) Convert anonymous class to named inner class. "Final local variables used by the anonymous class should be made to fields of the inner class, initialized through the constructor." (Bug 10659) (E) Move static inner class to static inner class of different outer class. (Bug 12082, Bug 12414) (F) Move compilation to becomes static inner class of another outer class. (Bug 12414) Personal opinion: I suspect that the above requests should be fulfilled with one or two parameterized refactorings. Bug 10604 also requests mechanisms to create inner classes from static methods, and to convert static inner classes with all static methods to instance class.
BTW, nice refactoring bug summary. Something like this is always wellcome.
Chaning state from assigned later to resolved later. Assigned later got introduced by the last bug conversion and is not a supported Eclipse bug state.
As of now 'LATER' and 'REMIND' resolutions are no longer supported. Please reopen this bug if it is still valid for you.