|
8 | 8 | | <a href="https://github.com/gejun123456/intellij-generateAllSetMethod/issues">Issues</a></p> |
9 | 9 | <p> 一键调用一个对象的所有的set方法,get方法等</p> |
10 | 10 | <p>在方法上生成两个对象的转换</p> |
11 | | - <p> generate call to class all setter method by alt+enter on the variable class</p> |
12 | | - <p> generate a converter two object when they have same field</p> |
13 | | - <p> generate default value when returnType is List Set Map </p> |
14 | | - <p> generate call to assertThat on all getter method</p> |
15 | | - <p> generate call to getter method</p> |
16 | | - <p> like a user class has setName, setPassword methods</p> |
17 | | - <p> generate converter between two class like aa.setHello(bb.getHello()) on method</p> |
18 | | - <p> <b>User</b> user = new User();</p> |
19 | | - <p> then alt+enter on User</p> |
20 | | - <p> will generate following</p> |
21 | | - <p> user.setName("");</p> |
22 | | - <p> user.setPassword("");</p> |
23 | | - <p> support all your class set method including super class</p> |
24 | | - <p> support kotlin |
25 | | - <p> view more on <a href ="https://github.com/gejun123456/intellij-generateAllSetMethod">https://github.com/gejun123456/intellij-generateAllSetMethod</a></p> |
| 11 | + <br/> |
| 12 | + <p><b>Features</b></p> |
| 13 | + <ul> |
| 14 | + <li>generate all setters by pressing Alt+Enter on the variable's class</li> |
| 15 | + <li>generate all setters with default values for most types including List, Set and Map</li> |
| 16 | + <li>generate a converter between two classes that have matching fields</li> |
| 17 | + <li>generate assertThat calls for all getter methods</li> |
| 18 | + </ul> |
| 19 | +
|
| 20 | + <p><b>Usage</b></p> |
| 21 | + <p>Let some class User has setName and setPassword methods and you have a declaration:<br/> |
| 22 | + <div style="margin: 10px"> |
| 23 | + <code>User user = <b>new</b> User();</code> |
| 24 | + </div> |
| 25 | + Set the caret to the word User and press Alt+Enter key. The plugin will produce the code:</p> |
| 26 | + <div style="margin: 10px"> |
| 27 | + <code> |
| 28 | + user.setName("");<br/> |
| 29 | + user.setPassword("");<br/> |
| 30 | + </code> |
| 31 | + </div> |
| 32 | +
|
| 33 | + <p>Works with Java and Kotlin programming languages.</p> |
| 34 | + <p>View more on <a href ="https://github.com/gejun123456/intellij-generateAllSetMethod">https://github.com/gejun123456/intellij-generateAllSetMethod</a></p> |
26 | 35 | ]]></description> |
27 | 36 |
|
28 | 37 | <change-notes><![CDATA[ |
|
169 | 178 | <applicationService serviceImplementation="com.bruce.intellijplugin.generatesetter.template.GenerateSetterService"/> |
170 | 179 |
|
171 | 180 | <applicationConfigurable instance="com.bruce.intellijplugin.generatesetter.template.MySettings"/> |
172 | | -<!-- <intentionAction>--> |
173 | | -<!-- <className>com.bruce.intellijplugin.generatesetter.actions.GenerateByTemplateAction</className>--> |
174 | | -<!-- </intentionAction>--> |
| 181 | + <!-- <intentionAction>--> |
| 182 | + <!-- <className>com.bruce.intellijplugin.generatesetter.actions.GenerateByTemplateAction</className>--> |
| 183 | + <!-- </intentionAction>--> |
175 | 184 | </extensions> |
176 | 185 | </idea-plugin> |
0 commit comments