-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathplugin.xml
More file actions
53 lines (43 loc) · 2.17 KB
/
plugin.xml
File metadata and controls
53 lines (43 loc) · 2.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<idea-plugin>
<id>de.u-mass.idea.copyConstructor</id>
<name>GenerateCopyConstructor</name>
<version>1.3</version>
<vendor email="me@jkovacs.de" url="http://www.jkovacs.de">Johann Kovacs</vendor>
<description><![CDATA[
<p>Adds an option to generate a copy constructor to the generate menu (alt + ins).</p>
<p>The action will generate a copy constructor taking an instance of the same class and copying over every field.
If there is a copy constructor available in the superclass it will be called as well.</p>
<p>Also adds a number of inspections that generate warnings if a copy constructor might be faulty
(e.g. not all fields copied or superclass constructor not invoked).</p>
]]></description>
<change-notes><![CDATA[
Dealing also with complex field initializations, like conditional expression for example
]]></change-notes>
<!-- please see http://confluence.jetbrains.net/display/IDEADEV/Build+Number+Ranges for description -->
<idea-version since-build="123.72"/>
<depends>com.intellij.modules.java</depends>
<application-components>
<!-- Add your application components here -->
</application-components>
<project-components>
<!-- Add your project components here -->
</project-components>
<actions>
<!-- Add your actions here -->
<action id="GenerateCopyConstructor" class="de.umass.idea.copyConstructor.GenerateCopyConstructorAction" text="Copy Constructor"
description="Generates a copy constructor">
<add-to-group group-id="JavaGenerateGroup1" anchor="after" relative-to-action="GenerateConstructor"/>
</action>
</actions>
<extensions defaultExtensionNs="com.intellij">
<!-- Add your extensions here -->
<localInspection implementationClass="de.umass.idea.copyConstructor.inspection.SuperclassConstructorInspection"
displayName="Copy constructor doesn't call superclass copy constructor"
groupName="Probable bugs"
enabledByDefault="true"/>
<localInspection implementationClass="de.umass.idea.copyConstructor.inspection.IncompleteCopyConstructorInspection"
displayName="Copy constructor doesn't copy all fields"
groupName="Probable bugs"
enabledByDefault="true"/>
</extensions>
</idea-plugin>