Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » template for constructor
template for constructor [message #88893] Mon, 25 August 2003 09:08 Go to next message
Eclipse UserFriend
Originally posted by: mueller.software.email.de

Hi all,

is there a template for inserting a constructor?

Regards

jumu
Re: template for constructor [message #88907 is a reply to message #88893] Mon, 25 August 2003 10:10 Go to previous message
Eclipse UserFriend
Originally posted by: faust.acm.org

What version of Eclipse are you running? That's pretty much a standard
question, so always give that info when you post plz.

You can use quick assist to auto create required constructors (Ctrl-1).

You can use Source->Add constructor from Superclass which will let you
choose your constructor. And in the latest integration build there's
Source->Generate Constructor using Fields which lets you choose fields to
pass in as parameters and set in the constructor you're auto-creating, as
well as choosing the superclass constructor that you want to call.

If you look at the Java->Code Generation preference page you will see
templates for the constructor body and constructor comments which you can
modify. These templates are utilized by the "Add constructor from
Superclass" action or quick assist.


Randy

"jumu" <mueller.software@email.de> wrote in message
news:bid1gn$l2n$1@eclipse.org...
> Hi all,
>
> is there a template for inserting a constructor?
>
> Regards
>
> jumu
>
>
Previous Topic:Applet designer tools in Eclipse?
Next Topic:Code transformation on compilation
Goto Forum:
  


Current Time: Tue Jul 22 15:36:36 EDT 2025

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

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

Back to the top