Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Getters, Setters help
Getters, Setters help [message #77465] Fri, 18 July 2003 00:11 Go to next message
Eclipse UserFriend
Originally posted by: my173.hotmail.com

i uses eclipse 2.1.1

example
public class testing {
private String password;

public String getPassword() {
return password;
}

public void setPassword(String string) {
password = string;
}
}


i want to Generation this format how to set?
this layout work on eclipse 2.0
public class testing {
private String password;

public String getPassword() {
return password;
}

public void setPassword(String password) {
this.password = password;
}
}
Re: Getters, Setters help [message #77495 is a reply to message #77465] Fri, 18 July 2003 02:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

As far as I can remember this was not possible with R2.0. In the 3.0
stream (M2 is about to be released soon) you can set it in the Code
Generation preferences.

Dani

My173 wrote:

>i uses eclipse 2.1.1
>
>example
>public class testing {
> private String password;
>
> public String getPassword() {
> return password;
> }
>
> public void setPassword(String string) {
> password = string;
> }
>}
>
>
>i want to Generation this format how to set?
>this layout work on eclipse 2.0
>public class testing {
> private String password;
>
> public String getPassword() {
> return password;
> }
>
> public void setPassword(String password) {
> this.password = password;
> }
>}
>
>
Re: Getters, Setters help [message #77821 is a reply to message #77465] Fri, 18 July 2003 11:05 Go to previous message
Eclipse UserFriend
This was a bug in 2.1, in the latest stream it is as you suggested.

My173 wrote:
> i uses eclipse 2.1.1
>
> example
> public class testing {
> private String password;
>
> public String getPassword() {
> return password;
> }
>
> public void setPassword(String string) {
> password = string;
> }
> }
>
>
> i want to Generation this format how to set?
> this layout work on eclipse 2.0
> public class testing {
> private String password;
>
> public String getPassword() {
> return password;
> }
>
> public void setPassword(String password) {
> this.password = password;
> }
> }
Previous Topic:Problems when using Eclipse strictly as a debugger
Next Topic:Remove All Expression in the Debugger
Goto Forum:
  


Current Time: Mon Jul 14 22:32:26 EDT 2025

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

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

Back to the top