Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Extract method to existing interface?
Extract method to existing interface? [message #210951] Tue, 26 July 2005 14:03 Go to next message
Eclipse UserFriend
Originally posted by: aclute.gmail.com

The 'Extract Interface' Refactor works great when you are done creating
your implementation class.

However, sometimes it is nice to be able to take a method that is only in
your Impl class had have the method extracted to an existing interface,
especially after you add new methods.

Is there a way to do this, or any plans to add such a feature?
Re: Extract method to existing interface? [message #211056 is a reply to message #210951] Wed, 27 July 2005 13:08 Go to previous message
Eclipse UserFriend
Originally posted by: eclipse3.rizzoweb.com

Andrew Clute wrote:
> The 'Extract Interface' Refactor works great when you are done creating
> your implementation class.
> However, sometimes it is nice to be able to take a method that is only
> in your Impl class had have the method extracted to an existing
> interface, especially after you add new methods.
>
> Is there a way to do this, or any plans to add such a feature?

This feature is available as a QuickFix (Ctrl+1 on the method) instead
of a Refactoring.
See this Bugzilla entry for some discussion about making it an item on
the Refactor menu instead - please add a comment since you are the nth
person to get thrown off by the odd placement.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=89352

HTH,
Eric
Previous Topic:debugger using wrong source
Next Topic:Changing the default ${filecomment} tag in 3.1
Goto Forum:
  


Current Time: Mon May 12 03:25:33 EDT 2025

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

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

Back to the top