-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
103 lines (100 loc) · 3.7 KB
/
plugin.xml
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
point="org.eclipse.ui.commands">
<command
id="org.meri.eclipse.defensiveapitools.generatetostring"
name="Generate Custom toString">
</command>
<command
id="org.meri.eclipse.defensiveapitools.checknonnullparameter"
name="Check Non-Null Parameters">
</command>
</extension>
<extension
point="org.eclipse.ui.menus">
<menuContribution
allPopups="true"
locationURI="popup:org.eclipse.jdt.ui.source.menu">
<separator
name="org.meri.eclipse.defensiveapitools.begin"
visible="true">
</separator>
<command
commandId="org.meri.eclipse.defensiveapitools.generatetostring"
label="Generate Custom toString"
style="push">
</command>
<command
commandId="org.meri.eclipse.defensiveapitools.checknonnullparameter"
label="Check Non-Null Parameters"
style="push">
</command>
<separator
name="org.meri.eclipse.defensiveapitools.end"
visible="true">
</separator>
</menuContribution>
</extension>
<extension
point="org.eclipse.ui.handlers">
<handler
class="org.meri.eclipse.defensiveapitools.generatetostring.GenerateToStringHandler"
commandId="org.meri.eclipse.defensiveapitools.generatetostring">
<enabledWhen>
<or>
<with variable="activePartId">
<equals value="org.eclipse.jdt.ui.CompilationUnitEditor" />
</with>
<with variable="activeMenuSelection">
<iterate ifEmpty="false" operator="and">
<or>
<adapt type="org.eclipse.jdt.core.IType" />
<adapt type="org.eclipse.jdt.core.ICompilationUnit" />
</or>
</iterate>
</with>
</or>
</enabledWhen>
</handler>
<handler
class="org.meri.eclipse.defensiveapitools.checknonnullparameter.CheckNonNullParameterHandler"
commandId="org.meri.eclipse.defensiveapitools.checknonnullparameter">
<enabledWhen>
<or>
<with variable="activePartId">
<equals value="org.eclipse.jdt.ui.CompilationUnitEditor" />
</with>
<with variable="activeMenuSelection">
<iterate ifEmpty="false" operator="and">
<adapt type="org.eclipse.jdt.core.IMethod" />
</iterate>
</with>
</or>
</enabledWhen>
</handler>
</extension>
<extension
point="org.eclipse.ui.actionSets">
<actionSet
id="org.meri.eclipse.defensiveapitools.sourcemenu"
label="Defensive API Tools "
visible="true">
<action
class="org.meri.eclipse.defensiveapitools.generatetostring.GenerateToStringActionDelegate"
id="org.meri.eclipse.defensiveapitools.generatecustomtostring"
label="Generate Custom toString"
menubarPath="org.eclipse.jdt.ui.source.menu/"
style="push">
</action>
<action
class="org.meri.eclipse.defensiveapitools.checknonnullparameter.CheckNonNullParameterActionDelegate"
id="org.meri.eclipse.defensiveapitools.checknonnullparameters"
label="Check Non-Null Parameters"
menubarPath="org.eclipse.jdt.ui.source.menu/"
style="push">
</action>
</actionSet>
</extension>
</plugin>