Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Extract Class - transferring methods
icon5.gif  Extract Class - transferring methods [message #532437] Sun, 09 May 2010 21:03 Go to next message
Eclipse UserFriend
Right now, the Extract Class refactoring is pretty limited in that it only transfers fields to the newly created class, but not methods. Does anybody know if Extract Class will be enhanced to do the method transfers any time soon?
Re: Extract Class - transferring methods [message #532463 is a reply to message #532437] Mon, 10 May 2010 03:15 Go to previous messageGo to next message
Eclipse UserFriend
Le 10/05/2010 03:03, kcassell2001@yahoo.com a écrit :
> Right now, the Extract Class refactoring is pretty limited in that it
> only transfers fields to the newly created class, but not methods. Does
> anybody know if Extract Class will be enhanced to do the method
> transfers any time soon?

The plan doesn't talk about it:
http://www.eclipse.org/jdt/ui/r3_6/plan.php

The bug 268675: [extract class] Refactor/Extract Class seems incomplete
https://bugs.eclipse.org/bugs/show_bug.cgi?id=268675
says explicitly that this is not the purpose of this refactoring.
Re: Extract Class - transferring methods [message #532706 is a reply to message #532463] Mon, 10 May 2010 18:08 Go to previous message
Eclipse UserFriend
Thanks for that. I've submitted Bug 312347 - Extract Class refactoring should transfer methods.

I was somewhat surprised to see the "works as designed" comment in Bug 268675 given that Fowler says that the Extract Class refactoring should move both methods and fields.
Previous Topic:Installing ADT :(
Next Topic:Problem installing GlassFish Plugin, please help me :-(
Goto Forum:
  


Current Time: Fri Mar 21 23:55:17 EDT 2025

Powered by FUDForum. Page generated in 0.03358 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top