Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8031177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T01:00:33+00:00 2026-06-05T01:00:33+00:00

When refactoring a field, the default behaviour in eclipse is to rename just the

  • 0

When refactoring a field, the default behaviour in eclipse is to rename just the field, leaving accessor methods with inconsistent names.

Pressing Alt+Shift+R twice shows a “Renaming dialog” where I can select if accessors should be renamed as well (as two separate options). This eases the pain of manually renaming the accessors, but is still quite suboptimal, involving pressing 3 more shortcuts than with the in-place renaming, plus my usual forgetfulness… 🙂

I cannot think of a reason why I would NOT like my refactoring to be consistent, so is there a way to make accessor renaming the default behaviour? I’m OK with tweaking cryptic settings and setting obscure flags as long as it works.

Thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T01:00:34+00:00Added an answer on June 5, 2026 at 1:00 am

    Just tried that in Eclipse 3.6 Helios (but I remember it works in Eclipse 3.4 and 3.5 and probably even earlier)

    A single Alt-Shift-R rename in the editor, once ENTER is pressed, will change the method name of corresponding getter and setter. The prerequisite is probably you should have once open the Rename Field dialog by pressing Alt-Shift-R twice, and select options in Rename getter and Rename setter. Subsequent rename actions will remember your choice on this.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to do lot of refactoring (actually need to change field names) in
When a simple refactoring like rename field has been done on one branch it
When refactoring classes and methods JDT doesn't change referenced resources, while it does when
I was refactoring the package structure inside a scala project with eclipse. In the
Please suggest in refactoring this code. Avoid code duplication, mutiple If's public FormDataDTO getDataForFieldFormCHrzntalField(Field
I just added a new field to my table in mysql and it came
I'm looking at refactoring a lot of large (1000+ lines) methods into nice chunks
When I do a refactoring such as renaming a field in netbeans, the hibernate
EDIT : I submitted an Eclipse enhancement request for this refactoring . Is there
What refactoring tools similar to Visual Studio / DevExpress / Resharper are available for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.