Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / September 2005

Tip: Looking for answers? Try searching our database.

Code Completion in Eclipse

Thread view: 
James Yong - 27 Sep 2005 17:32 GMT
Hi,

Is it possible in Ecilpse whereby the code completion feature puts the
arguments together with the method's name. For example, let say I have this
utility method:

public myClass {
   public String myMethod(String arg1,  String arg2);
}

When I choose myMethod by autocompletion, I want eclipse to put a predefined
code like the following line instead of just the method name:

myMethod("Type a id", "1970").

The reason is to help the programmer to save time in typing the arguments
when using certain utility methods.

Regard,
James Yong
Jeff Schwab - 28 Sep 2005 03:25 GMT
> Hi,
>
[quoted text clipped - 13 lines]
> The reason is to help the programmer to save time in typing the arguments
> when using certain utility methods.

The feature you want is the eclipse "template."  See the online docs at

    http://help.eclipse.org/help31/index.jsp

and search for the sections called "Templates" and "Writing your own
templates."
James Yong - 28 Sep 2005 05:14 GMT
> > Hi,
> >
[quoted text clipped - 20 lines]
> and search for the sections called "Templates" and "Writing your own
> templates."

Thanks Jeff. I will make a study of it. Cheers!


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.