Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » new method creation
new method creation [message #100527] Thu, 02 October 2003 10:16 Go to next message
Eclipse UserFriend
Hi all,

What's the best way to start a new method? Is there a way to get a
little new method dialog to show up, similar to the extract method
refactoring dialog? Is there perhaps a plugin that provides this?
Re: new method creation [message #100573 is a reply to message #100527] Thu, 02 October 2003 11:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tom.eicher.gmx.ch.nodomain

I ususally start typing the visibility modifier (i.e. protected) and
invoke Content Assist, which will offer me a template (i.e. protected
method) which will produce the skeleton of a method that I can fill in,
jumping from position to position by pressing TAB.

HTH
-tom

Matt Munz wrote:

> Hi all,
>
> What's the best way to start a new method? Is there a way to get a
> little new method dialog to show up, similar to the extract method
> refactoring dialog? Is there perhaps a plugin that provides this?
>
A "Create new Method" menu item would be best [message #100585 is a reply to message #100573] Thu, 02 October 2003 11:36 Go to previous messageGo to next message
Eclipse UserFriend
Tom Eicher wrote:
> invoke Content Assist, which will offer me a template (i.e. protected

Yeah, I do that too, but Content Assist is a bit slow for me.

When I'm in the flow of coding, I think "make new method", and want a UI
feature that matches that. There's a consistent paradigm for creating
"new" things, namely Ctrl+N -- it would be nice to see this applied to
methods as well as classes and files.

If it were possible to bind key combinations or menu items to templates,
this might be a temporary solution, although I think a "Create new
Method" menu item would be best.
Re: A "Create new Method" menu item would be best [message #100767 is a reply to message #100585] Thu, 02 October 2003 19:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: faust.acm.org

I think the Instantiations tool has support for a new method wizard like the
kind you mention. Personally, I just do the same thing as Tom does as its
fast and light-weight.


Randy

"Matt Munz" <mmunz@apelon.com> wrote in message
news:blhgk5$4va$1@eclipse.org...
> Tom Eicher wrote:
> > invoke Content Assist, which will offer me a template (i.e. protected
>
> Yeah, I do that too, but Content Assist is a bit slow for me.
>
> When I'm in the flow of coding, I think "make new method", and want a UI
> feature that matches that. There's a consistent paradigm for creating
> "new" things, namely Ctrl+N -- it would be nice to see this applied to
> methods as well as classes and files.
>
> If it were possible to bind key combinations or menu items to templates,
> this might be a temporary solution, although I think a "Create new
> Method" menu item would be best.
>
>
>
>
>
Re: A "Create new Method" menu item would be best [message #100809 is a reply to message #100585] Fri, 03 October 2003 00:13 Go to previous message
Eclipse UserFriend
Originally posted by: akiezun.cuthis.mit.edu.andthis

i think that a 'new method wizard' would make you type exactly the same
thing that you type anyway, so it would be an overkill.
do you think that it would be faster to use than simple typing+good code
assist?

i am yet to meet a real person who would actually create methods via a
wizard (let alone fields).

Randy's anwser points you to the right plugin to look at.
cheers
a.
Previous Topic:Newbe: Problem With JDT Install
Next Topic:Dynamic Deploy of Compiled Classes
Goto Forum:
  


Current Time: Thu Jul 17 13:01:37 EDT 2025

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

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

Back to the top