Skip to content

Commit

Permalink
N&N for quick assist to rename constants to standard naming
Browse files Browse the repository at this point in the history
  • Loading branch information
jjohnstn authored and vogella committed Nov 8, 2023
1 parent ec59af4 commit 678f32f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Binary file added news/4.30/images/constant-renaming.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions news/4.30/jdt.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,17 @@ <h2>Java Editor </h2>
<p>The functionality is also available as a quick fix for an individual call to a deprecated method that is marked with warning or error. One can also select a deprecated method call and initiate as a quick assist (select call and click <b>CTRL + 1</b>).
</td>
</tr>
<tr id="constant-renaming">
<!-- https://github.com/eclipse-jdt/eclipse.jdt.ui/issues/749 -->
<td class="title">Quick assist to rename constant fields</td>
<td class="content">
A new quick assist has been added to rename static constant fields to follow a standard syntax using upper-case and underscores rather than camel case.
To use: select the constant and click <b>CTRL+1</b>.
For example,
<p><img src="images/constant-renaming.png" alt="rename constant quick assist"/></p>
will offer to rename the constant "valConstant1" to "VAL_CONSTANT1".
</td>
</tr>
<!-- ******************* End of Java Editor ************************************* -->

<!-- ******************* Java Views and Dialogs ************************************* -->
Expand Down

0 comments on commit 678f32f

Please sign in to comment.