-
Notifications
You must be signed in to change notification settings - Fork 3
/
plugin.xml
298 lines (290 loc) · 11.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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
point="org.eclipse.ui.preferencePages">
<page
category="org.phpsrc.eclipse.pti.ui.preferences.PHPToolsPreferencePage"
class="org.phpsrc.eclipse.pti.tools.phpunit.ui.preferences.PHPUnitPreferencePage"
id="org.phpsrc.eclipse.pti.tools.phpunit.ui.preferences.PHPUnitPreferencePage"
name="PHPUnit">
</page>
</extension>
<extension point="org.eclipse.ui.propertyPages">
<page
category="org.phpsrc.eclipse.pti.ui.propertyPages.PHPToolsPreferencePage"
class="org.phpsrc.eclipse.pti.tools.phpunit.ui.preferences.PHPUnitPreferencePage"
id="org.phpsrc.eclipse.pti.tools.phpunit.ui.propertyPages.PHPUnitPreferencePage"
name="PHPUnit">
<enabledWhen>
<adapt type="org.eclipse.core.resources.IProject">
</adapt>
</enabledWhen>
<filter name="nature" value="org.eclipse.php.core.PHPNature" />
</page>
</extension>
<extension
id="org.phpsrc.eclipse.pti.tools.phpunit.validator.phpToolPHPUnitMarker"
name="PHPUnit"
point="org.eclipse.core.resources.markers">
<persistent value="true"/>
<attribute name="lineNumber"/>
<attribute name="charStart"/>
<attribute name="charEnd"/>
<attribute name="message"/>
<attribute name="priority"/>
<attribute name="severity"/>
<super type="org.eclipse.core.resources.problemmarker"/>
</extension>
<extension
point="org.eclipse.wst.validation.validatorV2"
id="PHPUnitAutomaticTestExecutionValidatorForPHP"
name="PHPUnit Automatic Test Execution (for PHP Files)">
<validator
class="org.phpsrc.eclipse.pti.tools.phpunit.validator.PHPUnitValidator"
build="false"
manual="false"
markerId="org.phpsrc.eclipse.pti.tools.phpunit.validator.phpToolPHPUnitMarker"
sourceid="org.eclipse.php.core.phpsource"
version="1">
<include>
<rules>
<contentType exactMatch="true" id="org.eclipse.php.core.phpsource"></contentType>
</rules>
</include>
<group id="org.eclipse.wst.sse.core.structuredModelGroup" />
</validator>
</extension>
<extension
point="org.eclipse.ui.newWizards">
<category
id="org.phpsrc.eclipse.tools.phpunit.wizards"
parentCategory="org.eclipse.php.project.ui"
name="PHPUnit">
</category>
<wizard
id="org.phpsrc.eclipse.pti.tools.phpunit.ui.wizards.CreatePHPUnitTestCaseWizard"
name="PHPUnit Test Case"
class="org.phpsrc.eclipse.pti.tools.phpunit.ui.wizards.CreatePHPUnitTestCaseWizard"
category="org.eclipse.php.project.ui/org.phpsrc.eclipse.tools.phpunit.wizards"
icon="icons/full/obj16/new_testcase.gif">
<description>Create a PHPUnit Test Case</description>
<selection class="org.eclipse.core.resources.IResource"/>
</wizard>
<wizard
id="org.phpsrc.eclipse.pti.tools.phpunit.ui.wizards.CreatePHPClassWizard"
name="PHP Class from PHPUnit Test Case"
class="org.phpsrc.eclipse.pti.tools.phpunit.ui.wizards.CreatePHPClassWizard"
category="org.eclipse.php.project.ui/org.phpsrc.eclipse.tools.phpunit.wizards"
icon="icons/full/obj16/add_php_file.gif">
<description>Create a PHP Class from a PHPUnit Test Case</description>
<selection class="org.eclipse.core.resources.IResource"/>
</wizard>
</extension>
<extension point="org.eclipse.ui.menus">
<menuContribution
locationURI="popup:org.phpsrc.eclipse.pti.ui.menus.phptools?after=additions">
<menu
id="org.phpsrc.eclipse.pti.tools.phpunit.ui.menus.phpunit"
label="PHPUnit">
</menu>
</menuContribution>
<menuContribution
locationURI="popup:org.phpsrc.eclipse.pti.tools.phpunit.ui.menus.phpunit?after=additions">
<command
commandId="org.phpsrc.eclipse.pti.tools.phpunit.ui.commands.runtest"
tooltip="Run PHPUnit Test"
icon="icons/full/obj16/testrun.gif">
<visibleWhen>
<with variable="activeMenuSelection">
<iterate>
<adapt type="org.eclipse.core.resources.IResource" />
</iterate>
</with>
</visibleWhen>
</command>
</menuContribution>
<menuContribution
locationURI="popup:org.phpsrc.eclipse.pti.tools.phpunit.ui.menus.phpunit?after=additions">
<command
commandId="org.phpsrc.eclipse.pti.tools.phpunit.ui.commands.runtestwithoutdetection"
tooltip="Run PHPUnit Test (without detection)"
icon="icons/full/obj16/testrunwithoutdetection.gif">
<visibleWhen>
<with variable="activeMenuSelection">
<iterate>
<adapt type="org.eclipse.core.resources.IResource" />
</iterate>
</with>
</visibleWhen>
</command>
</menuContribution>
<menuContribution
locationURI="popup:org.phpsrc.eclipse.pti.tools.phpunit.ui.menus.phpunit?after=additions">
<command
commandId="org.phpsrc.eclipse.pti.tools.phpunit.ui.commands.runtestwithcodecoverage"
tooltip="Run PHPUnit Test with Code Coverage"
icon="icons/full/obj16/testrunwithcodecoverage.gif">
<visibleWhen>
<with variable="activeMenuSelection">
<iterate>
<adapt type="org.eclipse.core.resources.IResource" />
</iterate>
</with>
</visibleWhen>
</command>
</menuContribution>
</extension>
<extension
point="org.eclipse.ui.commands">
<category
id="org.phpsrc.eclipse.pti.tools.phpunit.ui.commands"
name="PHPUnit">
</category>
<command
id="org.phpsrc.eclipse.pti.tools.phpunit.ui.commands.runtest"
categoryId="org.phpsrc.eclipse.pti.tools.phpunit.ui.commands"
name="Run PHPUnit Test">
</command>
<command
id="org.phpsrc.eclipse.pti.tools.phpunit.ui.commands.runtestwithoutdetection"
categoryId="org.phpsrc.eclipse.pti.tools.phpunit.ui.commands"
name="Run PHPUnit Test (without detection)">
</command>
<command
id="org.phpsrc.eclipse.pti.tools.phpunit.ui.commands.runtestwithcodecoverage"
categoryId="org.phpsrc.eclipse.pti.tools.phpunit.ui.commands"
name="Run PHPUnit Test with Code Coverage">
</command>
<command
id="org.phpsrc.eclipse.pti.tools.phpunit.ui.commands.toggletestcasetestelement"
categoryId="org.phpsrc.eclipse.pti.tools.phpunit.ui.commands"
name="Toggle Test Case / Test Element">
</command>
<command
id="org.phpsrc.eclipse.pti.tools.phpunit.ui.commands.rerunLast"
categoryId="org.phpsrc.eclipse.pti.tools.phpunit.ui.commands"
name="Rerun last test">
</command>
<command
id="org.phpsrc.eclipse.pti.tools.phpunit.ui.commands.syncclasses"
categoryId="org.phpsrc.eclipse.pti.tools.phpunit.ui.commands"
name="Synchronise Test Case / Test Element">
</command>
</extension>
<extension
name="PHPUnit"
point="org.eclipse.ui.actionSets">
<actionSet
id="org.phpsrc.eclipse.pti.tools.phpunit.ui.actionSet"
label="PHPUnit"
visible="false">
<action
id="org.phpsrc.eclipse.pti.tools.phpunit.ui.actions.SyncTestCaseAction"
definitionId="org.phpsrc.eclipse.pti.tools.phpunit.ui.commands.syncclasses"
label="Synchronise Test Case / Test Element"
icon="icons/full/obj16/synctestcase.gif"
toolbarPath="org.phpsrc.eclipse.pti.tools.phpunit.ui.actionSet"
tooltip="Synchronise new (test) methods from test case to test element or vice versa"
class="org.phpsrc.eclipse.pti.tools.phpunit.ui.actions.SyncTestCaseAction"
enablesFor="1">
</action>
<action
id="org.phpsrc.eclipse.pti.tools.phpunit.ui.actions.ToogleTestCaseTestElementAction"
definitionId="org.phpsrc.eclipse.pti.tools.phpunit.ui.commands.toggletestcasetestelement"
label="Toggle Test Case / Test Element"
icon="icons/full/obj16/toggletestcasetestelement.gif"
toolbarPath="org.phpsrc.eclipse.pti.tools.phpunit.ui.actionSet"
tooltip="Toogle between the test case editor and test element editor"
class="org.phpsrc.eclipse.pti.tools.phpunit.ui.actions.ToogleTestCaseTestElementAction"
enablesFor="1">
</action>
<action
id="org.phpsrc.eclipse.pti.tools.phpunit.ui.actions.RunTestCaseWithCodeCoverageAction"
definitionId="org.phpsrc.eclipse.pti.tools.phpunit.ui.commands.runtestwithcodecoverage"
label="Run PHPUnit Test with Code Coverage"
icon="icons/full/obj16/testrunwithcodecoverage.gif"
toolbarPath="org.phpsrc.eclipse.pti.tools.phpunit.ui.actionSet"
tooltip="Run selected PHPUnit Test with Code Coverage"
class="org.phpsrc.eclipse.pti.tools.phpunit.ui.actions.RunTestCaseWithCodeCoverageAction"
enablesFor="+">
</action>
<action
id="org.phpsrc.eclipse.pti.tools.phpunit.ui.actions.RunTestCaseWithouDetectionAction"
definitionId="org.phpsrc.eclipse.pti.tools.phpunit.ui.commands.runtestwithoutdetection"
label="Run PHPUnit Test (without detection)"
icon="icons/full/obj16/testrunwithoutdetection.gif"
toolbarPath="org.phpsrc.eclipse.pti.tools.phpunit.ui.actionSet"
tooltip="Run selected PHPUnit Test (without detection)"
class="org.phpsrc.eclipse.pti.tools.phpunit.ui.actions.RunTestCaseWithoutDetectionAction"
enablesFor="+">
</action>
<action
id="org.phpsrc.eclipse.pti.tools.phpunit.ui.actions.RunTestCaseAction"
definitionId="org.phpsrc.eclipse.pti.tools.phpunit.ui.commands.runtest"
label="Run PHPUnit Test"
icon="icons/full/obj16/testrun.gif"
toolbarPath="org.phpsrc.eclipse.pti.tools.phpunit.ui.actionSet"
tooltip="Run selected PHPUnit Test"
class="org.phpsrc.eclipse.pti.tools.phpunit.ui.actions.RunTestCaseAction"
enablesFor="+">
</action>
</actionSet>
</extension>
<extension point="org.eclipse.ui.views">
<view id="org.phpsrc.eclipse.pti.tools.phpunit.ui.views.testrunner"
name="PHPUnit"
category="org.eclipse.php.ui.views"
class="org.phpsrc.eclipse.pti.tools.phpunit.ui.views.testrunner.TestRunnerViewPart"
icon="icons/full/eview16/phpunit.gif" />
</extension>
<extension point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension targetID="org.eclipse.php.perspective">
<newWizardShortcut id="org.phpsrc.eclipse.pti.tools.phpunit.ui.wizards.CreatePHPUnitTestCaseWizard" />
<newWizardShortcut id="org.phpsrc.eclipse.pti.tools.phpunit.ui.wizards.CreatePHPClassWizard" />
<actionSet id="org.phpsrc.eclipse.pti.tools.phpunit.ui.actionSet" />
<viewShortcut id="org.phpsrc.eclipse.pti.tools.phpunit.ui.views.testrunner" />
</perspectiveExtension>
</extension>
<extension
id="org.phpsrc.eclipse.pti.tools.phpunit.validator.phpToolPHPUnitCodeCoverageMarker"
name="PHPUnit Code Coverage"
point="org.eclipse.core.resources.markers">
<persistent value="false"/>
<attribute name="lineNumber"/>
<attribute name="charStart"/>
<attribute name="charEnd"/>
<attribute name="message"/>
<attribute name="priority"/>
<attribute name="severity"/>
<super type="org.eclipse.core.resources.problemmarker"/>
</extension>
<extension point="org.eclipse.ui.editors.annotationTypes">
<type
name="org.phpsrc.eclipse.pti.tools.phpunit.codecoverage"
markerType="org.phpsrc.eclipse.pti.tools.phpunit.validator.phpToolPHPUnitCodeCoverageMarker"
markerSeverity="0">
</type>
</extension>
<extension point="org.eclipse.ui.editors.markerAnnotationSpecification">
<specification
annotationType="org.phpsrc.eclipse.pti.tools.phpunit.codecoverage"
textPreferenceKey="highlight.text"
colorPreferenceKey="highlight.color"
highlightPreferenceKey="highlight.background"
textPreferenceValue="true"
textStylePreferenceValue="IBEAM"
overviewRulerPreferenceKey="highlight.rulers.overview"
presentationLayer="4"
label="PHPUnit Code Coverage"
colorPreferenceValue="223,228,238"
verticalRulerPreferenceValue="true"
overviewRulerPreferenceValue="true"
highlightPreferenceValue="true"
textStylePreferenceKey="highlight.text.style"
includeOnPreferencePage="true"
icon=""
quickFixIcon="">
</specification>
</extension>
</plugin>