Alex Rivera | Logout

Is there a way to extract a class with methods in eclipse?

Asked 2009-11-27T01:27:48.587
16

I am trying to refactor a class that I have into 2 classes. Unfortunately eclipse's extract class function seems to only support the variables which really isn't all that helpful. Is there a way to extract the methods or is there a plugin that does it?

Edit
Report

1 Answer

0

Right now, I have resorted to using "copy class and delete methods" as described above or using IntelliJ's Extract Class, which does move both methods and classes, albeit buggily.

I'm hoping that others will vote for fixing bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=312347. I'd really like Eclipse to have a fully functioning extract class.

answered 2010-05-27T19:56:11.257

Your Answer