Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Refactor To Pull Method Up Into An Interface
Refactor To Pull Method Up Into An Interface [message #217812] Tue, 25 October 2005 16:03 Go to next message
Eclipse UserFriend
Originally posted by: brown_j.ociweb.com

I would like to refactor a method to "pull up" into an interface. I
don't want to create a new interface but I do want to move a method into
an interface that this class already implements. The Refactor->Pull
Up seems to work for pulling methods up into a parent class, but not
interfaces.

Is this do-able?

Thanks for your time.



Jeff
--
Jeff Brown
brown_j@ociweb.com
Principal Software Engineer
Object Computing Inc.
http://www.ociweb.com/

Autism Strikes 1 in 250
Find The Cause ~ Find The Cure
http://www.jeffandbetsy.net/walkfar2005/
http://www.naar.org/
Re: Refactor To Pull Method Up Into An Interface [message #217828 is a reply to message #217812] Tue, 25 October 2005 17:21 Go to previous message
Eclipse UserFriend
/Jeff Brown/:

> I would like to refactor a method to "pull up" into an interface. I
> don't want to create a new interface but I do want to move a method into
> an interface that this class already implements. The Refactor->Pull Up
> seems to work for pulling methods up into a parent class, but not
> interfaces.
>
> Is this do-able?

Yes, it is doable using "Quick Fix -> Create in super type ..."
option instead of "Refactor -> Pull Up...". Here are the related
Bugzilla issues:

Bug 89352 - "Create in supertype" QuickFix should be a Refactoring
<https://bugs.eclipse.org/bugs/show_bug.cgi?id=89352>

marked duplicate of:

Bug 30826 - Pull Up should support pulling up static fields and
methods into an interface [refactoring]
<https://bugs.eclipse.org/bugs/show_bug.cgi?id=30826>

--
Stanimir
Previous Topic:Q: eclipse vs. ant .class output directory
Next Topic:Is there JavaScript debugger for Eclipse?
Goto Forum:
  


Current Time: Fri May 09 02:26:03 EDT 2025

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

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

Back to the top