Bean Constructor Creation
After Joseph's recent inquiry about creating get and set methods for java
beans using the Generate R/W Property for this field, I am wondering if there
is an easy means to create a constructor for the bean that takes a list of
highlighted/selected field names as the constructor arguments and sets the
values in the bean object.
If there is not, then I will file an enhancement request.
Thanks,
-ronc
# 1
Ron Cordell wrote:
> After Joseph's recent inquiry about creating get and set methods for java
> beans using the Generate R/W Property for this field, I am wondering if there
> is an easy means to create a constructor for the bean that takes a list of
> highlighted/selected field names as the constructor arguments and sets the
> values in the bean object.
>
> If there is not, then I will file an enhancement request.
Ideally, I would like to see these things done/doable as editor
macros/abbreviations that one can define. Implementing every little
convenience as a feature is not the best approach as it makes the IDE
more cumbersome and less usable.
Sreeni.
# 2
Ron Cordell wrote:
> After Joseph's recent inquiry about creating get and set methods for java
> beans using the Generate R/W Property for this field, I am wondering if there
> is an easy means to create a constructor for the bean that takes a list of
> highlighted/selected field names as the constructor arguments and sets the
> values in the bean object.
>
> If there is not, then I will file an enhancement request.
>
No, there is no such feature. I thought about adding something you
describe to the New from Template wizard for classes a while ago, but it
didn't happen because
- we haven't been able to create an intuitive GUI for it (e.g. when
considering calling superclass' constructor)
- UI folks think the n.f.t. Wizard is too complex even without an
additional panel
So it didn't appear even as a standalone action.
File an enhancement request, please.
-Svata
--
Svatopluk Dedic<mailto:svatopluk.dedic@sun.com>
NetBeans, Java/Repository <http://java.netbeans.org>
# 3
I agree. That is why I posted the question about using regex in the macro
editor.
-ronc
On Saturday 13 July 2002 21:58, Sreenivasa Viswanadha wrote:
> Ron Cordell wrote:
> > After Joseph's recent inquiry about creating get and set methods for java
> > beans using the Generate R/W Property for this field, I am wondering if
> > there is an easy means to create a constructor for the bean that takes a
> > list of highlighted/selected field names as the constructor arguments and
> > sets the values in the bean object.
> >
> > If there is not, then I will file an enhancement request.
>
> Ideally, I would like to see these things done/doable as editor
> macros/abbreviations that one can define. Implementing every little
> convenience as a feature is not the best approach as it makes the IDE
> more cumbersome and less usable.
>
> Sreeni.
--
8:51am up 6 days, 11:21, 1 user, load average: 0.45, 0.15, 0.05