I sent an old file by mistake, this is the right one.

Javier


> -----Original Message-----
> From: Javier Lopez [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 25, 2001 10:59 PM
> To: [EMAIL PROTECTED]
> Subject: RE: auto-gen get/set pairs for existing class variables
> 
> 
> Here is the prototype I promised.
> The method jde-wiz-get-set-methods
> will generate get/set method for all variables that
> are non public and non final declared in the current buffer.
> If the method is already defined in the buffer it won't be generated.
> The methods generated look like this
> 
>   /**
>    * Gets the value of name
>    *
>    * @return the value of name
>    */
>   public String getName() {
>     return this.name;
>   }
> 
>   /**
>    * Sets the value of name
>    *
>    * @param name Value to assign to this.name
>    */
>   public void setName(String name) {
>     this.name = name;
>   }
> 
> Javier
> 
> > -----Original Message-----
> > From: Javier Lopez [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, July 23, 2001 11:58 PM
> > To: Sandip Chitale; [EMAIL PROTECTED]
> > Subject: RE: auto-gen get/set pairs for existing class variables
> >
> >
> > if no one has started working on this I will try to get a prototype
> > working over the next few days. If someone already started 
> doing something
> > please let me know, so I do not want to replicate work.
> >
> > Javier
> >
> > > -----Original Message-----
> > > From: Sandip Chitale [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, July 23, 2001 2:58 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: RE: auto-gen get/set pairs for existing class variables
> > >
> > >
> > > Shouldn't this be easy with Semantic.
> > > In fact, the function could show the list of
> > > non-public properties for which a getter/setter does not
> > > exist and let the user generate them in one shot
> > > e.g.
> > >
> > > Class Class1
> > >                                           Type            Getter
> > > Setter
> > > non-final non-public property1            int             [
> > > ]getProperty1
> > > [ ]setProperty1
> > > non-final non-public property2            int
> > > getProperty2
> > > [ ]setProperty2
> > > final non-public property3                        int             [
> > > ]getProperty3
> > > non-final non-public property4            boolean [
> > > ]isProperty4              [
> > > ]setProperty4
> > >
> > > Notice -
> > >
> > > . no "[ ]" for property2, if, say, getter already exists
> > > . missing "[ ]setProperty3" for final property3
> > > . isProperty4 instead of getProperty4 for boolean property4
> > > . auto insertion of static keyword for static properties
> > >
> > > etc. etc.
> > >
> > > Any takers ?
> > >
> > >
> > > Something similar exists in VAJ and its' cool !
> > >
> > >
> > > -sandip
> > >
> > > > -----Original Message-----
> > > > From: Daniel Hegyi [mailto:[EMAIL PROTECTED]]
> > > > Sent: Monday, July 23, 2001 11:43 AM
> > > > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > > > Subject: Re: auto-gen get/set pairs for existing class variables
> > > >
> > > >
> > > > >Is there a way to use the "Get/Set Pair..." template (or another
> > > > >feature) to generate the get/set pairs for all class
> > > > variables already
> > > > >defined?
> > > > >
> > > > >I thought this feature existed, but must be dreaming (or maybe a
> > > > >different tool?).  I also didn't see anythning in the docs nor
> > > > >archives that answered this.
> > > >
> > > > I agree. This feature would be very cool. It exists in some
> > > > other IDEs and
> > > > it is very handy.
> > > >
> > > > Daniel
> > > >
> > > > _________________________________________________________________
> > > > Get your FREE download of MSN Explorer at
> > > > http://explorer.msn.com/intl.asp
> > > >
> > >
> >
> 

jde-wiz.el

Reply via email to