title: eclipse tricks for code modification in java
body: <p>In my projects I am accessing property strings using the <code>Messages.KEY_NAME</code> to get the value of the property keys.</p>
  
  <p>Now I have to replace all those Messages.KEY_NAME into <code>Properties.getString(KEY_NAME)</code> function calls.</p>
  
  <blockquote>
    <p>Is there any trick or shortcut in eclipse to do this?</p>
  </blockquote>
  
  <p>I want to convert all field accessors of a particular class into function calls passing the field names as the input parameter.</p>
  
  <p>There are more than 1000 properties with key names</p>
  
  <p>Thanks in advance!</p>
  
  <p><strong>EDIT-1</strong></p>
  
  <p>The marked duplicate questions is about direct search and replace string in workspace. My question is about converting static field accessors into function calls where field name is the input string argument for the function.</p>