| View previous topic :: View next topic |
| Author |
Message |
Lori M Olson [TeamB] Guest
|
Posted: Wed Sep 22, 2004 4:59 pm Post subject: Re: How to create getter and setter methods in JBuilderX? |
|
|
Daniel Mark wrote:
| Quote: | Hello all:
Does JBuilderX provide some ways to create
getter and setter methods?
thank you
-Daniel
|
You can go to the "Bean" tab of your source file to do this. In JB2005
there is also an Introduce Field refactoring that will automatically add
getters and setters as required... I don't think that's in JBX, but I
could be remembering wrong.
--
Regards,
Lori Olson [TeamB]
------------
Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.
Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html
|
|
| Back to top |
|
 |
Daniel Mark Guest
|
Posted: Wed Sep 22, 2004 5:28 pm Post subject: How to create getter and setter methods in JBuilderX? |
|
|
Hello all:
Does JBuilderX provide some ways to create
getter and setter methods?
thank you
-Daniel
|
|
| Back to top |
|
 |
Tor Iver Wilhelmsen [Team Guest
|
Posted: Wed Sep 22, 2004 6:01 pm Post subject: Re: How to create getter and setter methods in JBuilderX? |
|
|
"Daniel Mark" <danielmarkhot (AT) hotmail (DOT) com> writes:
| Quote: | Does JBuilderX provide some ways to create
getter and setter methods?
|
If you have Developer or Enterprise, use the BeansExpress; it's under
the "Bean" tab as Lori wrote. Under there, click on the "Properties"
sub-tab.
I checked the "Introduce field" refactoring in JBX, and it does not
add getters or setters; apparently that is new in JB 2005.
|
|
| Back to top |
|
 |
Daniel Mark Guest
|
Posted: Wed Sep 22, 2004 8:18 pm Post subject: Re: How to create getter and setter methods in JBuilderX? |
|
|
Hello Lori:
| Quote: | You can go to the "Bean" tab of your source file to do this. In JB2005
there is also an Introduce Field refactoring that will automatically add
getters and setters as required... I don't think that's in JBX, but I
could be remembering wrong.
|
I find the solution:)
thank you for your great helps!
-Daniel
|
|
| Back to top |
|
 |
Daniel Mark Guest
|
Posted: Wed Sep 22, 2004 8:19 pm Post subject: Re: How to create getter and setter methods in JBuilderX? |
|
|
Hello Tor:
| Quote: | I checked the "Introduce field" refactoring in JBX, and it does not
add getters or setters; apparently that is new in JB 2005.
|
After reading comments from you and Lori, I find
the way to figure it out in JBuilderX.
thank you very very much!
-Daniel
|
|
| Back to top |
|
 |
Steve Wilber Guest
|
Posted: Thu Sep 23, 2004 5:43 pm Post subject: Re: How to create getter and setter methods in JBuilderX? |
|
|
Personally, I prefer Edit | Edit Fields/Properties...
From that dialog you can create/remove new fields as well as add/remove
getters and setters. You can also reach the dialog by right clicking in
the editor pane.
Lori M Olson [TeamB] wrote:
| Quote: | Daniel Mark wrote:
Hello all:
Does JBuilderX provide some ways to create
getter and setter methods?
thank you
-Daniel
You can go to the "Bean" tab of your source file to do this. In JB2005
there is also an Introduce Field refactoring that will automatically add
getters and setters as required... I don't think that's in JBX, but I
could be remembering wrong.
|
|
|
| Back to top |
|
 |
|