Eclipse Tool Tip #1: Getters and Setters

Currently my favorite IDE is Eclipse 3.1.0. For this inaugural Eclipse Tool Tip, I will just mention a time saver of a feature. When creating a new JavaBean, start by defining the attributes. Once this is done, go to Source > Generate setters and getters. This will open a wizard to allow you to select the attributes which you will generate setter and getter methods. This feature will save you minutes of repetitive ‘cut and paste’ programming.

Enjoy. Share. Be Happy.
  • Twitter
  • Facebook
  • StumbleUpon
  • del.icio.us
  • Tumblr
  • Google Bookmarks
  • FriendFeed
  • Yahoo! Buzz
  • Reddit
  • Digg
  • HackerNews
  • Suggest to Techmeme via Twitter
  • LinkedIn
  • Ping.fm
  • Identi.ca
  • Mixx
  • Furl

Related posts:

  1. Eclipse Tool Tip #2: Local History
  2. Eclipse Tool Tip #7: Resource and Class Type Find
  3. Eclipse Tool Tip #4: Key Assist
  4. Eclipse Tool Tip #5: Templates
  5. Eclipse Tool Tip #3: Code Perspective

This entry was posted in IDE, TechKnow. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*