@@ -10,15 +10,17 @@ Contributors:
10
10
NumberFour AG - Initial API and implementation
11
11
-->
12
12
<?eclipse version =" 3.4" ?>
13
+ <!-- Note: If you change this file, make sure to check the corresponding files for sub-languages -->
13
14
<plugin >
14
15
15
- <extension point =" org.eclipse.ui.views" >
16
+ <extension point =" org.eclipse.ui.views" >
16
17
<view id =" eu.numberfour.n4js.xpect.ui.runner.N4IDEXpectView"
17
18
name =" Xpect View"
18
19
icon =" icons/test_view.png"
19
20
category =" eu.numberfour.n4js.category"
20
21
class =" eu.numberfour.n4js.xpect.ui.results.N4IDEXpectView" />
21
- </extension >
22
+ </extension >
23
+
22
24
<extension point =" org.eclipse.debug.core.launchConfigurationTypes" >
23
25
<launchConfigurationType
24
26
delegate = " eu.numberfour.n4js.xpect.ui.XpectConfigurationDelegate"
@@ -27,17 +29,16 @@ Contributors:
27
29
name =" Run XPECT" >
28
30
</launchConfigurationType >
29
31
</extension >
30
-
31
- <extension
32
+ <extension
32
33
point =" org.eclipse.debug.ui.launchConfigurationTabGroups" >
33
34
<launchConfigurationTabGroup
34
35
class = " eu.numberfour.n4js.xpect.ui.LaunchConfigurationTabGroup"
35
36
id = " eu.numberfour.n4js.xpect.ui.LaunchConfigurationTabGroup.XPECT"
36
37
type = " eu.numberfour.n4js.xpect.ui.LaunchConfigurationType.XPECT" >
37
38
</launchConfigurationTabGroup >
38
- </extension >
39
+ </extension >
39
40
40
- <extension
41
+ <extension
41
42
point = " org.eclipse.debug.ui.launchShortcuts" >
42
43
<shortcut
43
44
class =" eu.numberfour.n4js.xpect.ui.LaunchXpectShortcut"
@@ -61,25 +62,15 @@ Contributors:
61
62
property = " org.eclipse.debug.ui.matchesPattern"
62
63
value = " *.n4js.xt" >
63
64
</test >
64
- <!-- <test
65
- property= "org.eclipse.debug.ui.matchesPattern"
66
- value= "*.js" >
67
- </test>
68
- <test
69
- property= "org.eclipse.debug.ui.matchesPattern"
70
- value= "*.n4js" >
71
- </test>
72
- -->
73
65
</or >
74
66
</iterate >
75
67
</with >
76
68
</enablement >
77
69
</contextualLaunch >
78
70
</shortcut >
79
- </extension >
80
-
81
-
82
- <extension
71
+ </extension >
72
+
73
+ <extension
83
74
point = " org.eclipse.debug.ui.launchShortcuts" >
84
75
<shortcut
85
76
class =" eu.numberfour.n4js.xpect.ui.GenerateJiraBugReportShortcut"
@@ -100,15 +91,6 @@ Contributors:
100
91
property = " org.eclipse.debug.ui.matchesPattern"
101
92
value = " *.n4js.xt" >
102
93
</test >
103
- <!-- <test
104
- property= "org.eclipse.debug.ui.matchesPattern"
105
- value= "*.js" >
106
- </test>
107
- <test
108
- property= "org.eclipse.debug.ui.matchesPattern"
109
- value= "*.n4js" >
110
- </test>
111
- -->
112
94
</or >
113
95
</iterate >
114
96
</with >
@@ -140,106 +122,102 @@ Contributors:
140
122
</enablement >
141
123
</contextualLaunch >
142
124
</shortcut >
143
- </extension >
144
-
145
-
146
- <extension
147
- point =" org.xpect.testSuite" >
148
- <testSuite
149
- class =" eu.numberfour.n4js.xpect.ui.runner.N4IDEXpectTestClass"
150
- fileExtension =" n4js" >
151
- </testSuite >
152
- </extension >
125
+ </extension >
126
+ <!-- Register .n4js file extension to XPECT -->
127
+ <extension
128
+ point =" org.xpect.testSuite" >
129
+ <testSuite
130
+ class =" eu.numberfour.n4js.xpect.ui.runner.N4IDEXpectTestClass"
131
+ fileExtension =" n4js" >
132
+ </testSuite >
133
+ </extension >
134
+ <!-- JIRA/GitHub bug command -->
135
+ <extension point =" org.eclipse.ui.commands" >
136
+ <command
137
+ description =" Generate JIRA Bug Report"
138
+ id =" eu.numberfour.n4js.xpect.ui.runner.generatebugcommand.jira"
139
+ name =" Generate JIRA Bug Report" >
140
+ </command >
141
+ <command
142
+ description =" Generate GitHub Issue Report"
143
+ id =" eu.numberfour.n4js.xpect.ui.runner.generatebugcommand.github"
144
+ name =" Generate GitHub Issue Report" >
145
+ </command >
146
+ <command
147
+ description =" Compare Test Results"
148
+ id =" eu.numberfour.n4js.xpect.ui.runner.comparecommand"
149
+ name =" Compare Test Results" >
150
+ </command >
151
+ </extension >
152
+
153
+ <extension point =" org.eclipse.ui.handlers" >
154
+ <handler
155
+ class =" eu.numberfour.n4js.xpect.ui.results.XpectCompareCommandHandler"
156
+ commandId =" eu.numberfour.n4js.xpect.ui.runner.comparecommand" >
157
+ </handler >
158
+ <handler
159
+ class =" eu.numberfour.n4js.xpect.ui.results.GenerateGitHubIssueXpectReportCommandHandler"
160
+ commandId =" eu.numberfour.n4js.xpect.ui.runner.generatebugcommand.github" >
161
+ </handler >
162
+ <handler
163
+ class =" eu.numberfour.n4js.xpect.ui.results.GenerateJIRABugXpectReportCommandHandler"
164
+ commandId =" eu.numberfour.n4js.xpect.ui.runner.generatebugcommand.jira" >
165
+ </handler >
166
+ </extension >
153
167
168
+ <extension point =" org.eclipse.ui.menus" >
169
+ <menuContribution locationURI =" popup:eu.numberfour.n4js.xpect.ui.runner.N4IDEXpectView" >
170
+ <command
171
+ commandId =" eu.numberfour.n4js.xpect.ui.runner.comparecommand"
172
+ style =" push" >
173
+ <visibleWhen >
174
+ <with variable =" activeMenuSelection" >
175
+ <test property =" eu.numberfour.n4js.xpect.ui.runner.isTest" value =" true" />
176
+ </with >
177
+ </visibleWhen >
178
+ </command >
179
+ <command
180
+ commandId =" eu.numberfour.n4js.xpect.ui.runner.generatebugcommand.jira"
181
+ style =" push" >
182
+ <visibleWhen >
183
+ <with variable =" activeMenuSelection" >
184
+ <test property =" eu.numberfour.n4js.xpect.ui.runner.isSuite" value =" true" />
185
+ </with >
186
+ </visibleWhen >
187
+ </command >
188
+ <command
189
+ commandId =" eu.numberfour.n4js.xpect.ui.runner.generatebugcommand.github"
190
+ style =" push" >
191
+ <visibleWhen >
192
+ <with
193
+ variable =" activeMenuSelection" >
194
+ <test
195
+ property =" eu.numberfour.n4js.xpect.ui.runner.isSuite"
196
+ value =" true" >
197
+ </test >
198
+ </with >
199
+ </visibleWhen >
200
+ </command >
201
+ </menuContribution >
202
+ </extension >
154
203
155
- <extension point =" org.eclipse.ui.commands" >
156
- <command
157
- description =" Generate JIRA Bug Report"
158
- id =" eu.numberfour.n4js.xpect.ui.runner.generatebugcommand.jira"
159
- name =" Generate JIRA Bug Report" >
160
- </command >
161
- <command
162
- description =" Generate GitHub Issue Report"
163
- id =" eu.numberfour.n4js.xpect.ui.runner.generatebugcommand.github"
164
- name =" Generate GitHub Issue Report" >
165
- </command >
166
- <command
167
- description =" Compare Test Results"
168
- id =" eu.numberfour.n4js.xpect.ui.runner.comparecommand"
169
- name =" Compare Test Results" >
170
- </command >
171
- </extension >
172
-
173
- <extension point =" org.eclipse.ui.handlers" >
174
- <handler
175
- class =" eu.numberfour.n4js.xpect.ui.results.XpectCompareCommandHandler"
176
- commandId =" eu.numberfour.n4js.xpect.ui.runner.comparecommand" >
177
- </handler >
178
- <handler
179
- class =" eu.numberfour.n4js.xpect.ui.results.GenerateGitHubIssueXpectReportCommandHandler"
180
- commandId =" eu.numberfour.n4js.xpect.ui.runner.generatebugcommand.github" >
181
- </handler >
182
- <handler
183
- class =" eu.numberfour.n4js.xpect.ui.results.GenerateJIRABugXpectReportCommandHandler"
184
- commandId =" eu.numberfour.n4js.xpect.ui.runner.generatebugcommand.jira" >
185
- </handler >
186
- </extension >
187
-
188
-
189
- <extension point =" org.eclipse.ui.menus" >
190
- <menuContribution locationURI =" popup:eu.numberfour.n4js.xpect.ui.runner.N4IDEXpectView" >
191
- <command
192
- commandId =" eu.numberfour.n4js.xpect.ui.runner.comparecommand"
193
- style =" push" >
194
- <visibleWhen >
195
- <with variable =" activeMenuSelection" >
196
- <test property =" eu.numberfour.n4js.xpect.ui.runner.isTest" value =" true" />
197
- </with >
198
- </visibleWhen >
199
- </command >
200
- <command
201
- commandId =" eu.numberfour.n4js.xpect.ui.runner.generatebugcommand.jira"
202
- style =" push" >
203
- <visibleWhen >
204
- <with variable =" activeMenuSelection" >
205
- <test property =" eu.numberfour.n4js.xpect.ui.runner.isSuite" value =" true" />
206
- </with >
207
- </visibleWhen >
208
- </command >
209
- <command
210
- commandId =" eu.numberfour.n4js.xpect.ui.runner.generatebugcommand.github"
211
- style =" push" >
212
- <visibleWhen >
213
- <with
214
- variable =" activeMenuSelection" >
215
- <test
216
- property =" eu.numberfour.n4js.xpect.ui.runner.isSuite"
217
- value =" true" >
218
- </test >
219
- </with >
220
- </visibleWhen >
221
- </command >
222
- </menuContribution >
223
- </extension >
224
-
225
-
226
- <extension
204
+ <extension
227
205
point =" org.eclipse.ui.contexts" >
228
- <context
206
+ <context
229
207
id =" eu.numberfour.n4js.xpect.ui.runner.N4IDEXpectView.context"
230
208
name =" XpectView Context"
231
209
parentId =" org.eclipse.ui.contexts.window" >
232
- </context >
233
- </extension >
210
+ </context >
211
+ </extension >
234
212
235
213
<extension point =" org.eclipse.core.expressions.propertyTesters" >
236
- <propertyTester
237
- class =" eu.numberfour.n4js.xpect.ui.runner.DescriptionTester"
238
- id =" eu.numberfour.n4js.xpect.ui.runner.descriptionTester"
239
- namespace =" eu.numberfour.n4js.xpect.ui.runner"
240
- properties =" isTest, isSuite"
241
- type =" org.eclipse.jface.viewers.IStructuredSelection" >
242
- </propertyTester >
214
+ <propertyTester
215
+ class =" eu.numberfour.n4js.xpect.ui.runner.DescriptionTester"
216
+ id =" eu.numberfour.n4js.xpect.ui.runner.descriptionTester"
217
+ namespace =" eu.numberfour.n4js.xpect.ui.runner"
218
+ properties =" isTest, isSuite"
219
+ type =" org.eclipse.jface.viewers.IStructuredSelection" >
220
+ </propertyTester >
243
221
</extension >
244
222
245
223
</plugin >
0 commit comments