Skip to main content



      Home
Home » Newcomers » Newcomers » Pulling up a method to an interface
Pulling up a method to an interface [message #91409] Tue, 02 August 2005 09:35 Go to next message
Eclipse UserFriend
Hello All
I have a class that implements an interface.
Than I write a method in the class, and later I find out that it is
better to add the method definition in the interface.
I try "Pull Up" through the "Refactor" menu, but Eclipse doesnt allow
this.

Is this the wrong way ?

Thank you

Elad
Re: Pulling up a method to an interface [message #91511 is a reply to message #91409] Tue, 02 August 2005 13:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse3.rizzoweb.com

Elad Messing wrote:
> Hello All
> I have a class that implements an interface.
> Than I write a method in the class, and later I find out that it is
> better to add the method definition in the interface. I try "Pull Up"
> through the "Refactor" menu, but Eclipse doesnt allow this.
>
> Is this the wrong way ?

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

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

HTH,
Eric
Re: Pulling up a method to an interface [message #91614 is a reply to message #91511] Wed, 03 August 2005 03:57 Go to previous message
Eclipse UserFriend
Thank you Eric, I will.

Elad
Previous Topic:Editor vs views
Next Topic:SWT and Eclipse 3.1
Goto Forum:
  


Current Time: Sun Nov 09 20:53:17 EST 2025

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

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

Back to the top