Book a Demo

Author Topic: Java "properties"  (Read 2700 times)

David Meyers

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Java "properties"
« on: June 08, 2006, 07:25:10 am »
I'm attempting to generate getters and setters for a Java class's attributes.  When I click on the Properties check box of an attribute, I do not have the option of specifing the capitalization of the methods.  Is there a template or configureation that allows me to change this?

I would like my getters/setters to be:
getCode setCode
NOT
getcode setcode

thanks,

Dave

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Java "properties"
« Reply #1 on: June 08, 2006, 08:38:22 am »
Dave,

Take a look at Tools / Options / Source Code Engineering.

Near the bottom of the page you should see (under Remove Properties when...) a check box labelled Capitalized Attribute Name for Properties. I think you need to check this box.

In the Java page (still within Tools / Options) ensure that the prefixes are "get" and "set" (without quotes); these should be the default.

Now name the properties as you want. Remember that if you use a prefix not included in the list (back in the Source Code Engineering page) you will have to add that prefix to get the desired results.

HTH,
David
No, you can't have it!