forked from testng-team/testng-eclipse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
414 lines (389 loc) · 15.4 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
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension-point id="reporterListenerContributorSchema" name="%reporterListenerContributor.name" schema="schema/reporterListenerContributorSchema.exsd"/>
<extension-point id="testListenerContributorSchema" name="%testListenerContributor.name" schema="schema/testListenerContributorSchema.exsd"/>
<extension
point="org.eclipse.core.expressions.propertyTesters">
<propertyTester
id="org.testng.eclipse.launch.tester.TestNGPropertyTester"
type="org.eclipse.core.runtime.IAdaptable"
namespace="org.testng.eclipse"
properties="isTest,isSuite,isXmlSuite"
class="org.testng.eclipse.launch.tester.TestNGPropertyTester">
</propertyTester>
</extension>
<extension point="org.eclipse.ui.popupMenus">
<viewerContribution
id="testng.editor.popup"
targetID="#CompilationUnitEditorContext" >
<menu
id="testng.editor.menu"
label="TestNG"
path="additions">
<groupMarker name="content"/>
<separator name="additions"/>
</menu>
<action
class="org.testng.eclipse.launch.RunEditorLaunchDelegate"
id="testng.run.popup.actionPlugin"
label="Run as plugin test"
menubarPath="testng.editor.menu/content">
</action>
</viewerContribution>
</extension>
<extension point="org.eclipse.jdt.core.classpathVariableInitializer">
<classpathVariableInitializer
variable="TESTNG_HOME"
class="org.testng.eclipse.buildpath.TestNGHomeInitializer">
</classpathVariableInitializer>
</extension>
<extension
point="org.eclipse.debug.ui.launchConfigurationTabGroups">
<launchConfigurationTabGroup
type="org.testng.eclipse.launchconfig"
class="org.testng.eclipse.launch.TestNGTabGroup"
id="org.testng.eclipse.launchConfigurationTabGroup.testng"/>
<launchConfigurationTabGroup
type="org.testng.eclipse.launchconfigPlugin"
class="org.testng.eclipse.launch.plugin.TestNGPluginTabGroup"
id="org.testng.eclipse.launchConfigurationTabGroup.testngPlugin"/>
</extension>
<extension
point="org.eclipse.debug.core.launchConfigurationTypes">
<launchConfigurationType
delegate="org.testng.eclipse.launch.TestNGLaunchConfigurationDelegate"
id="org.testng.eclipse.launchconfig"
modes="run,debug"
name="TestNG"
sourceLocatorId="org.eclipse.jdt.launching.sourceLocator.JavaSourceLookupDirector"
sourcePathComputerId="org.eclipse.jdt.launching.sourceLookup.javaSourcePathComputer">
</launchConfigurationType>
<launchConfigurationType
delegate="org.testng.eclipse.launch.plugin.TestNGPluginLaunchConfigurationDelegate"
id="org.testng.eclipse.launchconfigPlugin"
modes="run, debug"
name="%PluginLaunch.label"
sourceLocatorId="org.eclipse.jdt.launching.sourceLocator.JavaSourceLookupDirector"
sourcePathComputerId="org.eclipse.jdt.launching.sourceLookup.javaSourcePathComputer">
</launchConfigurationType>
</extension>
<extension
point="org.eclipse.debug.ui.launchConfigurationTypeImages">
<launchConfigurationTypeImage
configTypeID="org.testng.eclipse.launchconfig"
icon="icons/full/main16/testng.gif"
id="org.testng.eclipse.launchimage"/>
<launchConfigurationTypeImage
configTypeID="org.testng.eclipse.launchconfigPlugin"
icon="icons/full/main16/testng.gif"
id="org.testng.eclipse.launchimage"/>
</extension>
<extension
point="org.eclipse.ui.views">
<view
category="org.eclipse.jdt.ui.java"
class="org.testng.eclipse.ui.TestRunnerViewPart"
icon="icons/full/main16/testng_blur.gif"
id="org.testng.eclipse.ResultView"
name="%TestNG4Eclipse.ResultView"/>
</extension>
<extension
point="org.eclipse.debug.ui.launchShortcuts">
<shortcut
class="org.testng.eclipse.launch.TestNGLaunchShortcut"
icon="icons/full/main16/testng.gif"
id="org.testng.eclipse.shortcut"
label="%TestNGShortcut.test.label"
modes="run,debug">
<contextualLaunch>
<enablement>
<with variable="selection">
<iterate>
<or>
<test property="org.eclipse.debug.ui.matchesPattern" value="*.java"/>
<test property="org.eclipse.debug.ui.matchesPattern" value="*.class"/>
<instanceof value="org.eclipse.jdt.core.IJavaElement"/>
</or>
<test property="org.testng.eclipse.isTest" forcePluginActivation="true"/>
</iterate>
</with>
</enablement>
</contextualLaunch>
<perspective
id="org.eclipse.jdt.ui.JavaPerspective">
</perspective>
<perspective
id="org.eclipse.jdt.ui.JavaHierarchyPerspective">
</perspective>
<perspective
id="org.eclipse.jdt.ui.JavaBrowsingPerspective">
</perspective>
<perspective
id="org.eclipse.debug.ui.DebugPerspective">
</perspective>
</shortcut>
<shortcut
class="org.testng.eclipse.launch.TestNGSuiteLaunchShortcut"
icon="icons/full/main16/testng.gif"
id="org.testng.eclipse.shortcut.testngSuite"
label="%TestNGShortcut.suite.label"
modes="run,debug">
<contextualLaunch>
<enablement>
<with variable="selection">
<count
value="1">
</count>
<iterate>
<test property="org.eclipse.debug.ui.matchesPattern" value="*.xml|*.yaml"/>
<instanceof value="org.eclipse.core.resources.IFile"/>
<test property="org.testng.eclipse.isSuite"/>
</iterate>
</with>
</enablement>
</contextualLaunch>
<perspective
id="org.eclipse.jdt.ui.JavaPerspective">
</perspective>
<perspective
id="org.eclipse.jdt.ui.JavaHierarchyPerspective">
</perspective>
<perspective
id="org.eclipse.jdt.ui.JavaBrowsingPerspective">
</perspective>
<perspective
id="org.eclipse.debug.ui.DebugPerspective">
</perspective>
</shortcut>
</extension>
<!-- Project specific properties -->
<extension
point="org.eclipse.ui.propertyPages">
<page
class="org.testng.eclipse.ui.preferences.ProjectPropertyPage"
id="org.testng.eclipse.properties.propertyPage1"
name="TestNG">
<enabledWhen>
<and>
<adapt
type="org.eclipse.core.resources.IProject">
</adapt>
</and>
</enabledWhen>
</page>
</extension>
<extension
point="org.eclipse.ui.commands">
<command
name="%TestNGCommand.run.test.label"
description="%TestNGCommand.run.test.label"
categoryId="org.eclipse.debug.ui.category.run"
id="org.testng.eclipse.shortcut.run">
</command>
<command
name="%TestNGCommand.debug.test.label"
description="%TestNGCommand.debug.test.label"
categoryId="org.eclipse.debug.ui.category.run"
id="org.testng.eclipse.shortcut.debug">
</command>
<command
name="%TestNGCommand.run.suite.label"
description="%TestNGCommand.run.suite.label"
categoryId="org.eclipse.debug.ui.category.run"
id="org.testng.eclipse.shortcut.testngSuite.run">
</command>
<command
name="%TestNGCommand.debug.suite.label"
description="%TestNGCommand.debug.suite.label"
categoryId="org.eclipse.debug.ui.category.run"
id="org.testng.eclipse.shortcut.testngSuite.debug">
</command>
<command
name="Convert to TestNG"
description="Convert the selection to TestNG"
categoryId="org.eclipse.jdt.ui.category.refactoring"
id="org.testng.eclipse.convertAction"
defaultHandler="org.testng.eclipse.refactoring.ConvertFromJUnitAction"
>
</command>
<command
name="Create TestNG class"
description="Create a TestNG class to test this class"
categoryId="org.eclipse.jdt.ui.category.refactoring"
id="org.testng.eclipse.createClassAction"
defaultHandler="org.testng.eclipse.refactoring.CreateClassAction"
>
</command>
<command
name="Convert to YAML"
description="Convert the XML file to YAML"
id="org.testng.eclipse.convertToYamlAction"
defaultHandler="org.testng.eclipse.refactoring.ConvertToYamlAction"
>
</command>
</extension>
<extension
point="org.eclipse.ui.bindings">
<key
sequence="M3+M2+D N"
commandId="org.testng.eclipse.shortcut.debug"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"/>
<!-- COMMAND+ALT+Q is "Hide/Show Dock" on carbon, so don't overwrite it -->
<key
sequence="M3+M2+X N"
commandId="org.testng.eclipse.shortcut.run"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"/>
<key
sequence="M3+M2+D G"
commandId="org.testng.eclipse.shortcut.testngSuite.debug"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"/>
<!-- COMMAND+ALT+Q is "Hide/Show Dock" on carbon, so don't overwrite it -->
<key
sequence="M3+M2+X G"
commandId="org.testng.eclipse.shortcut.testngSuite.run"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"/>
</extension>
<extension
point="org.eclipse.jdt.ui.quickAssistProcessors">
<quickAssistProcessor
id="org.testng.eclipse.ui.conversion.JUnitConverterQuickAssistProcessor"
name="org.testng.eclipse.ui.conversion.JUnitConverterQuickAssistProcessor"
class="org.testng.eclipse.ui.conversion.JUnitConverterQuickAssistProcessor">
</quickAssistProcessor>
<quickAssistProcessor
class="org.testng.eclipse.refactoring.TestNGQuickAssistProcessor"
id="org.testng.eclipse.refactoring.TestNGQuickAssistProcessor"
name="org.testng.eclipse.refactoring.TestNGQuickAssistProcessor">
</quickAssistProcessor>
</extension>
<extension
point="org.eclipse.jdt.ui.quickFixProcessors">
<quickFixProcessor
class="org.testng.eclipse.ui.TestNGQuickFixProcessor"
id="org.testng.eclipse.ui.TestNGQuickFixProcessor"
name="org.testng.eclipse.ui.TestNGQuickFixProcessor"/>
</extension>
<extension
point="org.eclipse.jdt.core.classpathContainerInitializer">
<classpathContainerInitializer
class="org.testng.eclipse.buildpath.TestNGContainerInitializer"
id="org.testng.TESTNG_CONTAINER"/>
</extension>
<!-- Workspace wide preferences -->
<extension
point="org.eclipse.ui.preferencePages">
<page
class="org.testng.eclipse.ui.preferences.WorkspacePreferencePage"
id="org.testng.eclipse.ui.preferences.PreferencePage"
name="TestNG"/>
<page
class="org.testng.eclipse.ui.preferences.RunDebugPreferencePage"
id="org.testng.eclipse.ui.preferences.RunDebugPreferencePage"
category="org.testng.eclipse.ui.preferences.PreferencePage"
name="Run/Debug"/>
</extension>
<extension
point="org.eclipse.core.runtime.preferences">
<initializer class="org.testng.eclipse.ui.preferences.PreferenceInitializer"/>
</extension>
<extension
point="org.eclipse.ui.newWizards">
<category
id="org.testng.eclipse"
name="TestNG">
</category>
<wizard
category="org.testng.eclipse"
class="org.testng.eclipse.wizards.NewTestNGClassWizard"
icon="icons/full/main16/testng.gif"
id="org.testng.eclipse.wizards.NewTestNGClassWizard"
name="TestNG class">
</wizard>
</extension>
<extension
point="org.eclipse.ltk.core.refactoring.refactoringContributions">
<contribution
class="org.testng.eclipse.refactoring.ConvertFromJUnitRefactoringContribution"
id="org.testng.eclipse.convert">
</contribution>
</extension>
<!--
<extension
point="org.eclipse.ui.actionSets">
<actionSet
id="org.testng.eclipse.actionSet"
label="TestNG actionSet">
<menu
id="org.testng.eclipse.menu1"
label="TestNG actionSet menu"
path="edit">
<separator
name="org.testng.eclipse.separator1">
</separator>
</menu>
</actionSet>
</extension>
-->
<extension point="org.eclipse.ui.menus">
<menuContribution
allPopups="false"
locationURI="popup:org.eclipse.ui.popup.any">
<separator
name="testng-eclipse.separator2"
visible="true">
</separator>
<menu label="TestNG">
<visibleWhen>
<iterate ifEmpty="false">
<adapt type="org.eclipse.jdt.core.IJavaElement">
<instanceof value="org.eclipse.jdt.core.IJavaElement" />
</adapt>
</iterate>
</visibleWhen>
<command
commandId="org.testng.eclipse.createClassAction"
icon="icons/full/main16/testng-create.gif"
label="Create TestNG class"
style="push">
</command>
<command
commandId="org.testng.eclipse.convertAction"
icon="icons/full/main16/testng-convert.gif"
label="Convert to TestNG"
style="push">
</command>
</menu>
<menu label="TestNG">
<visibleWhen>
<with variable="selection">
<iterate
ifEmpty="false">
<adapt type="org.eclipse.core.resources.IFile">
<test property="org.eclipse.core.resources.name" value="*.xml"/>
<test property="org.testng.eclipse.isXmlSuite"/>
<instanceof value="org.eclipse.core.resources.IFile" />
<!--
<adapt type="org.eclipse.core.runtime.IAdaptable">
-->
</adapt>
</iterate>
</with>
</visibleWhen>
<command
commandId="org.testng.eclipse.convertToYamlAction"
label="Convert to YAML"
style="push">
</command>
</menu>
</menuContribution>
</extension>
<extension
point="org.eclipse.jdt.ui.classpathContainerPage">
<classpathContainerPage
class="org.testng.eclipse.ui.buildpath.TestNGContainerWizardPage"
id="org.testng.TESTNG_CONTAINER"
name="TestNG">
</classpathContainerPage>
</extension>
</plugin>