Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Generating constructors
Generating constructors [message #15028] Tue, 06 May 2003 09:00 Go to next message
Eclipse UserFriend
Hello all,

I have recently moved from IDEA to Eclipse (2.1). IDEA has some nice code
generating, refactoring, etc. features I am missing. So I'm spoiled.. ;)

'Source->Add Constructor from Superclass' allows me to generate
constructors in Eclipse. However, it doesn't allow me to choose any class
variables I want to have initialized by the constructor. Is it possible to
generate constructors that would initialize variables too? The variable
values would be passed as arguments to the constructor and the generation
would open a dialog asking me which variables do I want to have initialized.

If not, would this be difficult to implement as a plugin?

thanks,
Re: Generating constructors [message #15053 is a reply to message #15028] Tue, 06 May 2003 11:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: faust.acm.org

I would like to see this too I think.

http://bugs.eclipse.org/bugs/show_bug.cgi?id=37272

I created a feature request. Add yourself if you want to track.


Randy

"Teemu Kanstren" <kibaltsis@hotmail.com> wrote in message
news:b98bm5$5bp$1@rogue.oti.com...
> Hello all,
>
> I have recently moved from IDEA to Eclipse (2.1). IDEA has some nice code
> generating, refactoring, etc. features I am missing. So I'm spoiled.. ;)
>
> 'Source->Add Constructor from Superclass' allows me to generate
> constructors in Eclipse. However, it doesn't allow me to choose any class
> variables I want to have initialized by the constructor. Is it possible to
> generate constructors that would initialize variables too? The variable
> values would be passed as arguments to the constructor and the generation
> would open a dialog asking me which variables do I want to have
initialized.
>
> If not, would this be difficult to implement as a plugin?
>
> thanks,
>
>
>
Re: Generating constructors [message #16059 is a reply to message #15053] Wed, 07 May 2003 02:25 Go to previous messageGo to next message
Eclipse UserFriend
Thanks,

I added myself to track. I also checked some of the other bugs. Namely the
getter/setter one, as you probably noticed. Are these patches for the bugs
generally available in the nightly builds, or how does the process go?

-Teemu

"Randy Faust" <faust@acm.org> wrote in message
news:b98itm$bsg$1@rogue.oti.com...
> I would like to see this too I think.
>
> http://bugs.eclipse.org/bugs/show_bug.cgi?id=37272
>
> I created a feature request. Add yourself if you want to track.
>
>
> Randy
Re: Generating constructors [message #16417 is a reply to message #16059] Wed, 07 May 2003 05:47 Go to previous message
Eclipse UserFriend
Originally posted by: faust.acm.org

If a patch gets released, then yes its typically available in the nightly
builds (use at your own risk).


Randy

"Teemu Kanstren" <kibaltsis@hotmail.com> wrote in message
news:b9a8sn$f20$1@rogue.oti.com...
> Thanks,
>
> I added myself to track. I also checked some of the other bugs. Namely
the
> getter/setter one, as you probably noticed. Are these patches for the bugs
> generally available in the nightly builds, or how does the process go?
>
> -Teemu
>
> "Randy Faust" <faust@acm.org> wrote in message
> news:b98itm$bsg$1@rogue.oti.com...
> > I would like to see this too I think.
> >
> > http://bugs.eclipse.org/bugs/show_bug.cgi?id=37272
> >
> > I created a feature request. Add yourself if you want to track.
> >
> >
> > Randy
>
>
>
Previous Topic:Debugging JavaEditor example
Next Topic:IJavaModel.copy
Goto Forum:
  


Current Time: Tue Jul 01 16:33:16 EDT 2025

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

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

Back to the top