Skip to content
Newer
Older
100644 442 lines (436 sloc) 21.2 KB
3fbdede @JPMoresmau yesod devel and test launch configurations
authored
1 <?xml version="1.0" encoding="UTF-8"?>
2 <?eclipse version="3.2"?>
3 <plugin>
4 <extension
5 point="net.sf.eclipsefp.haskell.ui.CabalChangeListener">
6 <listener
7 class="net.sf.eclipsefp.haskell.debug.ui.internal.launch.LaunchUpdater"
8 id="net.sf.eclipsefp.haskell.debug.ui.listener2">
9 </listener>
10 </extension>
11 <extension
12 point="net.sf.eclipsefp.haskell.debug.core.interactiveDelegates">
13 <delegate
14 class="net.sf.eclipsefp.haskell.debug.ui.internal.launch.ghci.GhciLaunchOperationDelegate"
15 id="net.sf.eclipsefp.haskell.debug.ui.ghci">
16 </delegate>
17 <delegate
18 class="net.sf.eclipsefp.haskell.debug.ui.internal.launch.yesod.YesodDevelLaunchOperationDelegate"
19 id="net.sf.eclipsefp.haskell.debug.ui.yesod">
20 </delegate>
21 <delegate
22 class="net.sf.eclipsefp.haskell.debug.ui.internal.launch.yesod.YesodTestLaunchOperationDelegate"
23 id="net.sf.eclipsefp.haskell.debug.ui.yesod">
24 </delegate>
25 </extension>
26 <extension
27 point="org.eclipse.core.runtime.adapters">
28 <factory
29 class="net.sf.eclipsefp.haskell.debug.ui.internal.debug.HaskellBreakpointAdapterFactory"
30 adaptableType="net.sf.eclipsefp.haskell.ui.internal.editors.haskell.HaskellEditor">
31 <adapter type="org.eclipse.debug.ui.actions.IToggleBreakpointsTarget"/>
32 </factory>
33 </extension>
34 <extension
35 point="org.eclipse.debug.ui.debugModelPresentations">
36 <debugModelPresentation
37 class="net.sf.eclipsefp.haskell.debug.ui.internal.debug.HaskellModelPresentation"
38 id="net.sf.eclipsefp.haskell.debug">
39 </debugModelPresentation>
40 </extension>
41 <extension
42 point="org.eclipse.debug.ui.variableValueEditors">
43 <variableValueEditor
44 class="net.sf.eclipsefp.haskell.debug.ui.internal.debug.HaskellVariableValueEditor"
45 modelId="net.sf.eclipsefp.haskell.debug">
46 </variableValueEditor>
47 </extension>
48 <extension
49 point="org.eclipse.debug.ui.toggleBreakpointsTargetFactories">
50 <toggleTargetFactory
51 class="net.sf.eclipsefp.haskell.debug.ui.internal.debug.HaskellToggleBreakpointTargetFactory"
52 id="net.sf.eclipsefp.haskell.debug.ui.internal.debug.HaskellToggleBreakpointTargetFactory">
53 <enablement>
54 <with variable="debugContext">
55 <iterate>
56 <or>
57 <test property="org.eclipse.debug.ui.getModelIdentifier" value="net.sf.eclipsefp.haskell.debug"/>
58 <test property="org.eclipse.debug.ui.getModelIdentifier" value=""/>
59 </or>
60 </iterate>
61 </with>
62 <instanceof value="net.sf.eclipsefp.haskell.ui.internal.editors.haskell.HaskellEditor"/>
63 </enablement>
64 </toggleTargetFactory>
65 </extension>
66 <extension point="org.eclipse.ui.popupMenus">
67 <viewerContribution id="net.sf.eclipsefp.haskell.debug.ui.RulerPopupActions"
68 targetID="#TextRulerContext">
69
70 <action
71 id="net.sf.eclipsefp.haskell.ui.internal.editors.haskell.HaskellEditor.toggleBreakpointAction" label="%toggle_breakpoint"
72 class="org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate"
73 menubarPath="debug">
74 </action>
75 </viewerContribution>
fc7051f @JPMoresmau initial commit: first go at command history in ghci console
authored
76
3fbdede @JPMoresmau yesod devel and test launch configurations
authored
77 </extension>
78 <extension
79 point="org.eclipse.ui.editorActions">
80 <editorContribution
81 id="net.sf.eclipsefp.haskell.debug.ui.editorContribution1"
82 targetID="net.sf.eclipsefp.haskell.ui.internal.editors.haskell.HaskellEditor">
83 <action
84 label="%toggle_breakpoint"
85 class="org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate"
86 style="push"
87 actionID="RulerDoubleClick"
88 id="net.sf.eclipsefp.haskell.ui.internal.editors.haskell.HaskellEditor.doubleClickBreakpointAction"/>
89 </editorContribution>
90 </extension>
91
92 <extension point="org.eclipse.debug.core.watchExpressionDelegates">
93 <watchExpressionDelegate
94 debugModel="net.sf.eclipsefp.haskell.debug"
95 delegateClass="net.sf.eclipsefp.haskell.debug.ui.internal.debug.HaskellWatchExpressionDelegate"/>
96 </extension>
97 <!-- <extension
98 point="org.eclipse.debug.ui.launchConfigurationTypeImages">
99 <launchConfigurationTypeImage
100 configTypeID="net.sf.eclipsefp.haskell.debug.ui.internal.launch.young.GhciInteractiveLaunchDelegate"
101 icon="icons/etool16/ghci16.gif"
102 id="net.sf.eclipsefp.haskell.ui.launch.young.launchInteractiveIcon">
103 </launchConfigurationTypeImage>
104 <launchConfigurationTypeImage
105 configTypeID="net.sf.eclipsefp.haskell.debug.core.internal.launch.young.BaseExecutableLaunchDelegate"
106 icon="icons/etool16/hsexe16.gif"
107 id="net.sf.eclipsefp.haskell.ui.launch.young.launchExecutableIcon">
108 </launchConfigurationTypeImage>
109 <launchConfigurationTypeImage
110 configTypeID="net.sf.eclipsefp.haskell.debug.core.internal.launch.young.ProfilingLaunchDelegate"
111 icon="icons/etool16/hsexe16.gif"
112 id="net.sf.eclipsefp.haskell.ui.launch.young.launchProfilingIcon">
113 </launchConfigurationTypeImage>
114 <launchConfigurationTypeImage
115 configTypeID="net.sf.eclipsefp.haskell.debug.core.internal.launch.young.TestSuiteLaunchDelegate"
116 icon="icons/etool16/hsexe16.gif"
117 id="net.sf.eclipsefp.haskell.ui.launch.young.launchTestSuiteIcon">
118 </launchConfigurationTypeImage>
119 </extension>
120 <extension
121 point="org.eclipse.debug.ui.launchConfigurationTabGroups">
122 <launchConfigurationTabGroup
123 class="net.sf.eclipsefp.haskell.debug.ui.internal.launch.young.InteractiveLaunchTabGroup"
124 id="net.sf.eclipsefp.haskell.debug.ui.internal.launch.young.InteractiveLaunchTabGroup"
125 type="net.sf.eclipsefp.haskell.debug.ui.internal.launch.young.GhciInteractiveLaunchDelegate">
126 </launchConfigurationTabGroup>
127 <launchConfigurationTabGroup
128 class="net.sf.eclipsefp.haskell.debug.ui.internal.launch.young.ExecutableLaunchTabGroup"
129 id="net.sf.eclipsefp.haskell.debug.ui.internal.launch.young.ExecutableLaunchTabGroup"
130 type="net.sf.eclipsefp.haskell.debug.core.internal.launch.young.BaseExecutableLaunchDelegate">
131 </launchConfigurationTabGroup>
132 <launchConfigurationTabGroup
133 class="net.sf.eclipsefp.haskell.debug.ui.internal.launch.young.ExecutableLaunchTabGroup"
134 id="net.sf.eclipsefp.haskell.debug.ui.internal.launch.young.ProfilingLaunchTabGroup"
135 type="net.sf.eclipsefp.haskell.debug.core.internal.launch.young.ProfilingLaunchDelegate">
136 </launchConfigurationTabGroup>
137 <launchConfigurationTabGroup
138 class="net.sf.eclipsefp.haskell.debug.ui.internal.launch.young.ExecutableLaunchTabGroup"
139 id="net.sf.eclipsefp.haskell.debug.ui.internal.launch.young.TestSuiteLaunchTabGroup"
140 type="net.sf.eclipsefp.haskell.debug.core.internal.launch.young.TestSuiteLaunchDelegate">
141 </launchConfigurationTabGroup>
142 </extension> -->
143 <extension
144 point="org.eclipse.debug.ui.launchConfigurationTypeImages">
145 <launchConfigurationTypeImage
146 icon="icons/etool16/ghci16.gif"
147 configTypeID="net.sf.eclipsefp.haskell.debug.core.internal.launch.HaskellLaunchDelegate"
148 id="net.sf.eclipsefp.haskell.ui.launch.launchIcon">
149 </launchConfigurationTypeImage>
150 <launchConfigurationTypeImage
151 icon="icons/etool16/yesod16.gif"
152 configTypeID="net.sf.eclipsefp.haskell.debug.core.internal.launch.YesodLaunchDelegate"
153 id="net.sf.eclipsefp.haskell.ui.launch.launchYesodIcon">
154 </launchConfigurationTypeImage>
155 <launchConfigurationTypeImage
156 icon="icons/etool16/yesod16.gif"
157 configTypeID="net.sf.eclipsefp.haskell.debug.core.internal.launch.YesodTestLaunchDelegate"
158 id="net.sf.eclipsefp.haskell.ui.launch.launchYesodIcon">
159 </launchConfigurationTypeImage>
160 <launchConfigurationTypeImage
161 icon="icons/etool16/hsexe16.gif"
162 configTypeID="net.sf.eclipsefp.haskell.debug.core.internal.launch.ExecutableHaskellLaunchDelegate"
163 id="net.sf.eclipsefp.haskell.ui.launch.launchExecutableIcon">
164 </launchConfigurationTypeImage>
165 <launchConfigurationTypeImage
166 configTypeID="net.sf.eclipsefp.haskell.debug.core.internal.launch.ExecutableProfilingHaskellLaunchDelegate"
167 icon="icons/etool16/hsexe16.gif"
168 id="net.sf.eclipsefp.haskell.ui.launch.launchExecutableProfilingIcon">
169 </launchConfigurationTypeImage>
170 <launchConfigurationTypeImage
171 configTypeID="net.sf.eclipsefp.haskell.debug.core.internal.launch.TestSuiteHaskellLaunchDelegate"
172 icon="icons/etool16/hsexe16.gif"
173 id="net.sf.eclipsefp.haskell.ui.launch.launchTestSuiteIcon">
174 </launchConfigurationTypeImage>
175 </extension>
176 <extension
177 point="org.eclipse.debug.ui.launchConfigurationTabGroups">
178 <launchConfigurationTabGroup
179 type="net.sf.eclipsefp.haskell.debug.core.internal.launch.HaskellLaunchDelegate"
180 class="net.sf.eclipsefp.haskell.debug.ui.internal.launch.HaskellLaunchTabGroup"
181 id="net.sf.eclipsefp.haskell.debug.ui.internal.launch.HaskellLaunchTabGroup">
182 </launchConfigurationTabGroup>
183 <launchConfigurationTabGroup
184 type="net.sf.eclipsefp.haskell.debug.core.internal.launch.ExecutableHaskellLaunchDelegate"
185 class="net.sf.eclipsefp.haskell.debug.ui.internal.launch.ExecutableTestSuiteHaskellLaunchTabGroup"
186 id="net.sf.eclipsefp.haskell.debug.ui.internal.launch.ExecutableHaskellLaunchTabGroup">
187 </launchConfigurationTabGroup>
188 <launchConfigurationTabGroup
189 class="net.sf.eclipsefp.haskell.debug.ui.internal.launch.ExecutableTestSuiteHaskellLaunchTabGroup"
190 id="net.sf.eclipsefp.haskell.debug.ui.internal.launch.ExecutableHaskellLaunchTabGroup"
191 type="net.sf.eclipsefp.haskell.debug.core.internal.launch.TestSuiteHaskellLaunchDelegate">
192 </launchConfigurationTabGroup>
193 <launchConfigurationTabGroup
194 class="net.sf.eclipsefp.haskell.debug.ui.internal.launch.ExecutableTestSuiteHaskellLaunchTabGroup"
195 id="net.sf.eclipsefp.haskell.debug.ui.internal.launch.ExecutableHaskellLaunchTabGroup"
196 type="net.sf.eclipsefp.haskell.debug.core.internal.launch.ExecutableProfilingHaskellLaunchDelegate">
197 </launchConfigurationTabGroup>
198 <launchConfigurationTabGroup
199 class="net.sf.eclipsefp.haskell.debug.ui.internal.launch.yesod.YesodLaunchTabGroup"
200 id="net.sf.eclipsefp.haskell.debug.ui.internal.launch.YesodLaunchTabGroup"
201 type="net.sf.eclipsefp.haskell.debug.core.internal.launch.YesodLaunchDelegate">
202 </launchConfigurationTabGroup>
203 <launchConfigurationTabGroup
204 class="net.sf.eclipsefp.haskell.debug.ui.internal.launch.yesod.YesodLaunchTabGroup"
205 id="net.sf.eclipsefp.haskell.debug.ui.internal.launch.YesodLaunchTabGroup"
206 type="net.sf.eclipsefp.haskell.debug.core.internal.launch.YesodTestLaunchDelegate">
207 </launchConfigurationTabGroup>
208 </extension>
209 <extension
210 point="org.eclipse.debug.ui.launchShortcuts">
211 <shortcut
212 label="%appLaunchShortcut_label"
213 icon="icons/etool16/hsexe16.gif"
214 class="net.sf.eclipsefp.haskell.debug.ui.internal.launch.ExecutableLaunchShortcut"
215 modes="run"
216 id="net.sf.eclipsefp.haskell.debug.ui.internal.launch.ExecutableLaunchShortcut">
217 <contextualLaunch>
218 <enablement>
219 <with
220 variable="selection">
221 <count
222 value="1">
223 </count>
224 <iterate>
225 <or>
226 <test
227 property="net.sf.eclipsefp.haskell.core.isProjectExecutable">
228 </test>
229 <instanceof value="net.sf.eclipsefp.haskell.ui.internal.views.projectexplorer.ProjectExplorerStanza"/>
230 </or>
231 </iterate>
232 </with>
233 </enablement>
234 <contextLabel
235 label="%appLaunchContextLabel_label"
236 mode="run">
237 </contextLabel>
238 </contextualLaunch>
239 </shortcut>
240 <shortcut
241 label="%ghciShortcut_label"
242 icon="icons/etool16/ghci16.gif"
243 class="net.sf.eclipsefp.haskell.debug.ui.internal.launch.ghci.GhciLaunchShortcut"
244 modes="run, debug"
245 id="net.sf.eclipsefp.haskell.debug.ui.internal.launch.ghci.GhciLaunchShortcut">
246 <contextualLaunch>
247 <enablement>
248 <with variable="selection">
249 <count value="1" />
250 <iterate>
251 <adapt type="org.eclipse.core.resources.IResource">
252 <test property="net.sf.eclipsefp.haskell.core.isHaskellFile"/>
253 </adapt>
254 </iterate>
255 </with>
256 </enablement>
257 <contextLabel
258 label="%ghciContextLabel_label"
259 mode="run">
260 </contextLabel>
261 </contextualLaunch>
262 </shortcut>
263 <shortcut
264 label="%yesodDevelShortcut_label"
265 icon="icons/etool16/yesod16.gif"
266 class="net.sf.eclipsefp.haskell.debug.ui.internal.launch.yesod.YesodDevelLaunchShortcut"
267 modes="run"
268 id="net.sf.eclipsefp.haskell.debug.ui.internal.launch.yesod.YesodDevelLaunchShortcut">
269 <contextualLaunch>
270 <enablement>
271 <with variable="selection">
272 <count value="1" />
273 <iterate>
274 <adapt type="org.eclipse.core.resources.IProject">
275 <test property="net.sf.eclipsefp.haskell.core.isProjectYesod"/>
276 </adapt>
277 </iterate>
278 </with>
279 </enablement>
280 <contextLabel
281 label="%yesodDevelContextLabel_label"
282 mode="run">
283 </contextLabel>
284 </contextualLaunch>
285 </shortcut>
286 <shortcut
287 label="%yesodTestShortcut_label"
288 icon="icons/etool16/yesod16.gif"
289 class="net.sf.eclipsefp.haskell.debug.ui.internal.launch.yesod.YesodTestLaunchShortcut"
290 modes="run"
291 id="net.sf.eclipsefp.haskell.debug.ui.internal.launch.yesod.YesodTestLaunchShortcut">
292 <contextualLaunch>
293 <enablement>
294 <with variable="selection">
295 <count value="1" />
296 <iterate>
297 <adapt type="org.eclipse.core.resources.IProject">
298 <test property="net.sf.eclipsefp.haskell.core.isProjectYesod"/>
299 </adapt>
300 </iterate>
301 </with>
302 </enablement>
303 <contextLabel
304 label="%yesodTestContextLabel_label"
305 mode="run">
306 </contextLabel>
307 </contextualLaunch>
308 </shortcut>
309 <shortcut
310 class="net.sf.eclipsefp.haskell.debug.ui.internal.launch.TestSuiteLaunchShortcut"
311 icon="icons/etool16/hsexe16.gif"
312 id="net.sf.eclipsefp.haskell.debug.ui.internal.launch.TestSuiteLaunchShortcut"
313 label="%testSuiteLaunchShortcut_label"
314 modes="run">
315 <contextualLaunch>
316 <enablement>
317 <with
318 variable="selection">
319 <count
320 value="1">
321 </count>
322 <iterate>
323 <test
324 property="net.sf.eclipsefp.haskell.core.isProjectTestSuite">
325 </test>
326 </iterate>
327 </with>
328 </enablement>
329 <contextLabel
330 label="%testSuiteLaunchContextLabel_label"
331 mode="run">
332 </contextLabel>
333 </contextualLaunch>
334 </shortcut>
335 <shortcut
336 class="net.sf.eclipsefp.haskell.debug.ui.internal.launch.ExecutableProfilingLaunchShortcut"
337 icon="icons/etool16/hsexe16.gif"
338 id="net.sf.eclipsefp.haskell.debug.ui.internal.launch.ExecutableProfilingLaunchShortcut"
339 label="%appLaunchProfilingShortcut_label"
340 modes="run">
341 <contextualLaunch>
342 <enablement>
343 <with
344 variable="selection">
345 <count
346 value="1">
347 </count>
348 <iterate>
349 <test
350 property="net.sf.eclipsefp.haskell.core.isProjectExecutable">
351 </test>
352 </iterate>
353 </with>
354 </enablement>
355 <contextLabel
356 label="%appLaunchProfilingContextLabel_label"
357 mode="run">
358 </contextLabel>
359 </contextualLaunch>
360 </shortcut>
361 </extension>
362 <extension point="org.eclipse.ui.commands">
363 <command
364 name="%runGHCiShortcut_name"
365 description="%runGHCiShortcut_desc"
366 categoryId="org.eclipse.debug.ui.category.run"
367 id="net.sf.eclipsefp.haskell.debug.ui.internal.launch.ghci.GhciLaunchShortcut.run">
368 </command>
369 <command
370 name="%runHaskellShortcut_name"
371 description="%runHaskellShortcut_desc"
372 categoryId="org.eclipse.debug.ui.category.run"
373 id="net.sf.eclipsefp.haskell.debug.ui.internal.launch.ExecutableLaunchShortcut.run">
374 </command>
375 <command
376 categoryId="org.eclipse.debug.ui.category.run"
377 description="%runTestSuiteShortcut_desc"
378 id="net.sf.eclipsefp.haskell.debug.ui.internal.launch.TestSuiteLaunchShortcut.run"
379 name="%runTestSuiteShortcut_name">
380 </command>
381 <command
382 categoryId="org.eclipse.debug.ui.category.run"
383 description="%runHaskellProfilingShortcut_desc"
384 id="net.sf.eclipsefp.haskell.debug.ui.internal.launch.ExecutableProfilingLaunchShortcut.run"
385 name="%runHaskellProfilingShortcut_name">
386 </command>
387 </extension>
388 <extension point="org.eclipse.ui.bindings">
389 <key sequence="M3+M2+X G"
390 commandId="net.sf.eclipsefp.haskell.debug.ui.internal.launch.ghci.GhciLaunchShortcut.run"
391 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"/>
392 <key sequence="M3+M2+X H"
393 commandId="net.sf.eclipsefp.haskell.debug.ui.internal.launch.ExecutableLaunchShortcut.run"
394 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"/>
395 <key
396 commandId="net.sf.eclipsefp.haskell.debug.ui.internal.launch.TestSuiteLaunchShortcut.run"
397 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
398 sequence="M3+M2+X F">
399 </key>
400 <key
401 commandId="net.sf.eclipsefp.haskell.debug.ui.internal.launch.ExecutableProfilingLaunchShortcut.run"
402 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
403 sequence="M3+M2+X R">
404 </key>
405 </extension>
406 <extension
407 point="org.eclipse.ui.navigator.viewer">
408 <viewerActionBinding
409 viewerId="org.eclipse.ui.navigator.ProjectExplorer">
410 <includes>
411 <actionExtension
412 pattern="net.sf.eclipsefp.haskell.debug.ui.internal.launch.RunActionProvider">
413 </actionExtension>
414 </includes>
415 </viewerActionBinding>
416 </extension>
417 <extension
418 point="org.eclipse.ui.navigator.navigatorContent">
419 <actionProvider
420 class="net.sf.eclipsefp.haskell.debug.ui.internal.launch.RunActionProvider"
421 id="net.sf.eclipsefp.haskell.debug.ui.internal.launch.RunActionProvider">
422 <enablement>
423 <instanceof
424 value="net.sf.eclipsefp.haskell.ui.internal.views.projectexplorer.ProjectExplorerStanza">
425 </instanceof>
426 </enablement>
427 </actionProvider>
428 </extension>
429
fc7051f @JPMoresmau initial commit: first go at command history in ghci console
authored
430
431 <extension
432 point="org.eclipse.ui.console.consolePageParticipants">
433 <consolePageParticipant
434 class="net.sf.eclipsefp.haskell.debug.ui.repl.HistoryParticipant"
435 id="net.sf.eclipsefp.haskell.debug.ui.repl.HistoryParticipant">
436 <enablement>
437 <instanceof value="org.eclipse.debug.internal.ui.views.console.ProcessConsole"/>
438 </enablement>
439 </consolePageParticipant>
440 </extension>
3fbdede @JPMoresmau yesod devel and test launch configurations
authored
441 </plugin>
Something went wrong with that request. Please try again.