Skip to main content



      Home
Home » Newcomers » Newcomers » How to generate a method
How to generate a method [message #88648] Fri, 22 July 2005 15:30 Go to next message
Eclipse UserFriend
Originally posted by: manum.rocketmail.com

Hello,

Can I auto geneate methods in Eclipse.
For instance if I have the following

public void foo()
{
ArrayList aa = new ArrayList();
ArrayList bb = autoGenerateThisMethod(aa);
^^^^^^^^^^^^^^^^^^^^^^
}


Can I do a right click or something and ask Eclipse to generate
(Something like that IntelliJ offers)

/**
* This is Eclipse Generated Auto method
*/
public ArrayList autoGeneteThisMethod(ArrayList _aa)
{
}

thanx much
-Manu
Re: How to generate a method [message #88736 is a reply to message #88648] Sat, 23 July 2005 00:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wegener.cboenospam.com

Manu Mittal wrote:
> Hello,
>
> Can I auto geneate methods in Eclipse. For instance if I have the following
>
> public void foo()
> {
> ArrayList aa = new ArrayList();
> ArrayList bb = autoGenerateThisMethod(aa);
> ^^^^^^^^^^^^^^^^^^^^^^
> }
>
>
> Can I do a right click or something and ask Eclipse to generate
> (Something like that IntelliJ offers)
>
> /**
> * This is Eclipse Generated Auto method
> */
> public ArrayList autoGeneteThisMethod(ArrayList _aa)
> {
> }
>
> thanx much
> -Manu
>
>
Put your cursor in the text of autoGenerateThisMethod and hit Ctrl-1.
This will bring up a quick fix list. One of the items will be create
method.
Re: How to generate a method [message #88750 is a reply to message #88736] Sat, 23 July 2005 02:24 Go to previous message
Eclipse UserFriend
Originally posted by: manum.rocketmail.com

thanx
-M
Previous Topic:Debugging application running in Tomcat
Next Topic:Attempting to wean from VisualAgeJavaV4...
Goto Forum:
  


Current Time: Tue Jul 22 09:13:29 EDT 2025

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

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

Back to the top