Skip to content

Commit 2ced9ac

Browse files
author
Henady Zakalusky
committed
added intensions documentation to all actions.
1 parent ed99817 commit 2ced9ac

File tree

26 files changed

+88
-1
lines changed

26 files changed

+88
-1
lines changed

src/main/java/com/bruce/intellijplugin/generatesetter/actions/GenerateAllSetterBase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ private static boolean notObjectClass(PsiClass psiClass) {
730730
@NotNull
731731
@Override
732732
public String getFamilyName() {
733-
return CommonConstants.GENERATE_SETTER_METHOD;
733+
return getText();
734734
}
735735

736736
}

src/main/resources/META-INF/plugin.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,34 +136,42 @@
136136
<extensions defaultExtensionNs="com.intellij">
137137
<intentionAction>
138138
<className>com.bruce.intellijplugin.generatesetter.actions.GenerateAllSetterAction</className>
139+
<category>GenerateAllSetter</category>
139140
</intentionAction>
140141

141142
<intentionAction>
142143
<className>com.bruce.intellijplugin.generatesetter.actions.GenerateWithBuilderAction</className>
144+
<category>GenerateAllSetter</category>
143145
</intentionAction>
144146

145147
<intentionAction>
146148
<className>com.bruce.intellijplugin.generatesetter.actions.GenerateWithAccessorsAction</className>
149+
<category>GenerateAllSetter</category>
147150
</intentionAction>
148151

149152
<intentionAction>
150153
<className>com.bruce.intellijplugin.generatesetter.actions.GenerateAllSetterNoDefaultValueAction</className>
154+
<category>GenerateAllSetter</category>
151155
</intentionAction>
152156

153157
<intentionAction>
154158
<className>com.bruce.intellijplugin.generatesetter.actions.GenerateBuilderGetterFromFunctionAction</className>
159+
<category>GenerateAllSetter</category>
155160
</intentionAction>
156161

157162
<intentionAction>
158163
<className>com.bruce.intellijplugin.generatesetter.actions.AssertAllGetterAction</className>
164+
<category>GenerateAllSetter</category>
159165
</intentionAction>
160166

161167
<intentionAction>
162168
<className>com.bruce.intellijplugin.generatesetter.actions.GenerateSetterGetterFromFunctionAction</className>
169+
<category>GenerateAllSetter</category>
163170
</intentionAction>
164171

165172
<intentionAction>
166173
<className>com.bruce.intellijplugin.generatesetter.actions.GenerateAllGetterAction</className>
174+
<category>GenerateAllSetter</category>
167175
</intentionAction>
168176

169177
<applicationService serviceImplementation="com.bruce.intellijplugin.generatesetter.template.GenerateSetterService"/>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
User user = userService.findByName("admin");
2+
assertEquals("", user.getName())
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
User user = userService.findByName("admin");
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<html>
2+
<body>
3+
Asserts that all getters return the default value using the module's testing engine.
4+
</body>
5+
</html>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
User user = userService.findByName("admin");
2+
String user = user.getName();
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
User user = userService.findByName("admin");
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<html>
2+
<body>
3+
Generates a code snippet that assigns the values of a object's getters methods to local variables
4+
</body>
5+
</html>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
User user = new User();
2+
user.setName("");
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
User user = new User();

0 commit comments

Comments
 (0)