Product Version = NetBeans IDE 7.1.1 (Build nbms-and-javadoc-9049-on-20120405)
Operating System = Linux version 3.0.0-17-generic running on amd64
Java; VM; Vendor = 1.7.0_03
Runtime = Java HotSpot(TM) 64-Bit Server VM 22.1-b02
It would be so usefull to add some commands to the refactor command list : "Extract Class" just to extract some methods from the current class and create a new class, move the methods there and refactor the current class.
Also the command "Move method" to move methods from the current class to another.
I f I understand correctly; the refactor command, list is the refactoring menu? In NetBeans 7.2 (avaiable in the current dev builds ) move is extended to also support moving (instance) methods and variables.
Please reopen the issue if I misunderstood.
When I mention "refactor command list" I mean the Refactor menu options.
But what about the feature "Extract Class" ?I've seen in the new version 7.2 ( nightly build ) that the Move refactor option allows to move class members to an already created class.
But, that would need to first create a new empty class and then move the members to it.....
I think that if package and class drop down objects allow enter free text that would also allow to create a new class and move the members in that class.
*** Bug 208165 has been marked as a duplicate of this bug. ***
Thanks you for the clear description. I agree, it should be possible to move members (methods/fields) to a new Class in a possible new package.
As we passed the feature freeze for 7.2 and this change requires some new precondition checking and different transformations, I'm not sure if this will be implemented in 7.2, but I will look into it.
Will this new refactoring feature ( move members to a new empty class not existing yet ) be included in the 7.3 release ?