Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Generate getters and setters
Generate getters and setters [message #68312] Thu, 26 June 2003 19:07 Go to next message
Eclipse UserFriend
Originally posted by: gsrt.terra.com.br

Hi all,

In Eclipse 2.1, the "generate getters and setters" menu create
something like

/**
* @param i
*/
public void setValor2(int i)
{
valor2 = i;
}

Version 2.0 generates

/**
* @param valor2
*/
public void setValor2(int valor2)
{
this.valor2 = valor2;
}

instead.
Are there any way to change this behaviour (I want the 2.0 convention in
my 2.1) ?

[]s
Glauco
Re: Generate getters and setters [message #68375 is a reply to message #68312] Thu, 26 June 2003 16:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: faust.acm.org

Can't reproduce. What version exactly?


Randy

"Glauco Reis" <gsrt@terra.com.br> wrote in message
news:3EFB7CA4.11E7941E@terra.com.br...
> Hi all,
>
> In Eclipse 2.1, the "generate getters and setters" menu create
> something like
>
> /**
> * @param i
> */
> public void setValor2(int i)
> {
> valor2 = i;
> }
>
> Version 2.0 generates
>
> /**
> * @param valor2
> */
> public void setValor2(int valor2)
> {
> this.valor2 = valor2;
> }
>
> instead.
> Are there any way to change this behaviour (I want the 2.0 convention in
> my 2.1) ?
>
> []s
> Glauco
>
>
Re: Generate getters and setters [message #68575 is a reply to message #68312] Fri, 27 June 2003 04:20 Go to previous messageGo to next message
Eclipse UserFriend
There is unfortunatly no way to change the behaviour.
We reintroduced the 2.0 behaviour in the latest stream (3.0).

Martin

Glauco Reis wrote:
> Hi all,
>
> In Eclipse 2.1, the "generate getters and setters" menu create
> something like
>
> /**
> * @param i
> */
> public void setValor2(int i)
> {
> valor2 = i;
> }
>
> Version 2.0 generates
>
> /**
> * @param valor2
> */
> public void setValor2(int valor2)
> {
> this.valor2 = valor2;
> }
>
> instead.
> Are there any way to change this behaviour (I want the 2.0 convention in
> my 2.1) ?
>
> []s
> Glauco
>
>
Re: Generate getters and setters [message #68696 is a reply to message #68575] Fri, 27 June 2003 13:28 Go to previous message
Eclipse UserFriend
Originally posted by: gsrt.terra.com.br

OK, thank you...

[]s
Glauco


Martin Aeschlimann wrote:

> There is unfortunatly no way to change the behaviour.
> We reintroduced the 2.0 behaviour in the latest stream (3.0).
>
> Martin
>
> Glauco Reis wrote:
> > Hi all,
> >
> > In Eclipse 2.1, the "generate getters and setters" menu create
> > something like
> >
> > /**
> > * @param i
> > */
> > public void setValor2(int i)
> > {
> > valor2 = i;
> > }
> >
> > Version 2.0 generates
> >
> > /**
> > * @param valor2
> > */
> > public void setValor2(int valor2)
> > {
> > this.valor2 = valor2;
> > }
> >
> > instead.
> > Are there any way to change this behaviour (I want the 2.0 convention in
> > my 2.1) ?
> >
> > []s
> > Glauco
> >
> >
Previous Topic:How to obtain the absolute path of the workbench installation
Next Topic:Problem: Export, eclipse's compiler and Java 1.4
Goto Forum:
  


Current Time: Wed Apr 23 23:11:14 EDT 2025

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

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

Back to the top