Register | Forgot password
All Blogs...
One of the WCB guidelines tells you to use the proper coding conventions and prescribes the use of CheckStyle with a GX-specific configuration file. One of the things this configuration file makes you do is prefix all member fields with the "my" keyword. When you do this in Eclipse and then use the "Generate Getters and Setters" tool, you'll get methods like getMyAdvice() if you're not careful.
To get rid of this behavior, there is only one thing you need to do: open the Window menu and click Preferences. Navigate to Java and then Code Style. In the pane that is now displayed, make sure you've specified the "my" prefix for member fields. After applying this setting, the next time you use the "Generate Getters and Setters" tool, Eclipse will strip the prefix and generate a getAdvice() method for you!
Return to all blogs
Mark is software engineer with a special interest in Security and Digital WebTV. Mark writes about daily engineering with GX WebManager
Read all Marks blog entries
Other blog entries: