Skip to content

Commit

Permalink
Add generators to the quick fix / assists for the class
Browse files Browse the repository at this point in the history
  • Loading branch information
jjohnstn authored and akurtakov committed Nov 16, 2022
1 parent 3bd0167 commit a5d1154
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
Binary file added 4.26/images/new-class-assists.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions 4.26/jdt.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,26 @@ <h2>JUnit</h2>
<h2>Java Editor </h2>
</td>
</tr>

<tr id="new-class-assists"> <!-- https://github.com/eclipse-jdt/eclipse.jdt.ui/pull/295 -->
<td class="title"><a href="#new-class-assists">New assists for class</a></td>
<td class="content">
Some existing actions found in the <b>Source</b> menu have been made available as quick assists for a class. These actions are:
<ol>
<li>Generate getters and setters</li>
<li>Generate hashCode()/equals() methods</li>
<li>Generate toString() method</li>
</ol>
<p>All three actions require that there at least be one field in the class and that the action is required: namely, that getters/setters,
hashCode()/equals(), or toString() methods do not already exist. Each action will bring up a dialog for the user to make additional
specifications (e.g. which fields to use).
</p>
<p>To use the quick assist, select a class and specify <b>CTRL+1</b>.
</p>
<p><img src="images/new-class-assists.png" alt="New Assists"/></p>
</td>
</tr>

<!-- ******************* End of Java Editor ************************************* -->

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

0 comments on commit a5d1154

Please sign in to comment.