This issue tracks implementation of Move Method refactoring.
*** Issue 57221 has been marked as a duplicate of this issue. ***
*** Issue 150003 has been marked as a duplicate of this issue. ***
*** Issue 74881 has been marked as a duplicate of this issue. ***
*** Issue 98871 has been marked as a duplicate of this issue. ***
*** Issue 125576 has been marked as a duplicate of this issue. ***
*** Issue 130499 has been marked as a duplicate of this issue. ***
ok, there have now been 6 reports for this feature from Netbeans 4.1 to Netbeans 6.5, which completely outweighs the votes (which I know is stupidly used as
a metric when deciding what to fix)... so should we expect any attention toward this anytime soon?
fommil: I have been going through refactoring features, enhancements and tasks to collect what seems to be important for
users. And yes this feature appears to be very important. Unfortunately, I cannot yet guarantee whether there will be
free resources to implement it to 7.0. In case you would like to volunteer to work on this you are surely welcome!
@jpokorsky I've actually volunteered several times in the past to help out with some features (specifically in the java hints component)... but nobody has ever
got back to point me in the right direction. Obviously the NetBeans codebase is a monster. If you could help point me in the direction of trunk svn access, the
build system and the relevant classes, I could have a look... although I must admit, I don't have much free time these days and the little time I do have is
going into an OSS project.
It would be great to have a Wiki page describing how to write and add a new refactoring so that people willing to help
Here are some useful resources:
* http://wiki.netbeans.org/NetBeansDeveloperFAQ - especially Getting Started section that describes how to get sources
via Mercurial, links to NetBeans API javadocs, how to build NetBeans and modules and many other tips
* http://wiki.netbeans.org/Java_DevelopersGuide - describes how to access java model
* http://wiki.netbeans.org/RefactoringFAQ - describes most common usages
* http://refactoring.netbeans.org/refactorings/devguide.html - a bit out-dated but still useful
* http://refactoring.netbeans.org/refactorings/movemethod.html - Move Method Refactoring Specification
* http://wiki.netbeans.org/NetBeansUserFAQ#section-NetBeansUserFAQ-ContributorAgreement - this is important to read and
sign if you decide to contribute some code to hg.netbeans.org repository.
The NetBeans source base is really huge but it is a modular system so it is not necessary to know everything. You can
find inspiration especially in the refactoring.java module.
In case you have more questions feel free to ask even on my email.
Excellent! That's an invaluable resource... I'll have a look. Must admit though, I have a few bug reports and feature requests that I'd rather fix than this one ;-)
*** This bug has been marked as a duplicate of bug 204441 ***