/
plugin.xml
332 lines (287 loc) · 10.6 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
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<!-- Create VDM Debug perspective with VDM layout -->
<extension
point="org.eclipse.ui.perspectives">
<perspective
name="%DebugPerspective.name"
icon="$nl$/icons/eview16/debug_vdm.png"
class="org.overture.ide.debug.ui.DebugPerspectiveFactory"
id="org.overture.ide.debug.DebugPerspective">
<description>
%DebugPerspective.description
</description>
</perspective>
</extension>
<!-- Add VDM outline to the VDM Debug perspective -->
<extension
point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension
targetID="org.overture.ide.debug.DebugPerspective">
<view
id="org.eclipse.ui.views.ContentOutline"
minimized="false"
ratio="0.75"
relationship="right"
relative="org.eclipse.ui.editorss">
</view>
</perspectiveExtension>
</extension>
<!-- Add VDM outline to the standard Debug perspective -->
<extension point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension
targetID="org.eclipse.debug.ui.DebugPerspective">
<view
id="org.eclipse.ui.views.ContentOutline"
relative="org.eclipse.debug.ui.VariableView"
ratio="0.4"
relationship="bottom"
/>
</perspectiveExtension>
</extension>
<extension-point id="org.overture.ide.debug.sourceviewerEditor"
name="Source Viewer Editor" schema="schema/org.overture.ide.debug.sourceviewerEditor.exsd" />
<!--
add breakpoint actionsSet to the OverturePerspective (this is the menu
-> run -> (toggle breakpoint, remove all breakpoints, etc)
-->
<extension point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension targetID="org.overture.ide.ui.perspective">
<actionSet id="org.eclipse.debug.ui.breakpointActionSet"></actionSet>
<actionSet
id="org.eclipse.debug.ui.launchActionSet">
</actionSet>
</perspectiveExtension>
</extension>
<!-- Breakpoints -->
<extension point="org.eclipse.debug.core.breakpoints">
<breakpoint class="org.overture.ide.debug.core.model.internal.VdmLineBreakpoint"
id="org.overture.ide.debug.breakpoint"
markerType="vdm.lineBreakpoint.marker"
name="Vdm Line Breakpoint">
</breakpoint>
</extension>
<extension id="vdm.lineBreakpoint.marker"
point="org.eclipse.core.resources.markers">
<super type="org.eclipse.debug.core.lineBreakpointMarker"></super>
<persistent value="true">
</persistent>
</extension>
<extension point="org.eclipse.core.runtime.adapters">
<factory adaptableType="org.eclipse.ui.texteditor.ITextEditor"
class="org.overture.ide.debug.ui.model.VdmBreakpointAdapterFactory">
<adapter type="org.eclipse.debug.ui.actions.IToggleBreakpointsTarget">
</adapter>
</factory>
</extension>
<!-- source locator -->
<extension point="org.eclipse.debug.core.sourceLocators">
<sourceLocator
class="org.overture.ide.debug.core.launching.VdmSourceLocatorDirector"
id="org.overture.ide.debug.sourceLocator"
name="Vdm Source Locator">
</sourceLocator>
</extension>
<extension point="org.eclipse.debug.core.sourcePathComputers">
<sourcePathComputer
class="org.overture.ide.debug.core.launching.VdmSourcePathComputerDelegate"
id="org.overture.ide.debug.sourcePathComputer">
</sourcePathComputer>
</extension>
<extension point="org.eclipse.debug.ui.debugModelPresentations">
<debugModelPresentation
class="org.overture.ide.debug.ui.model.VdmDebugModelPresentation"
id="org.overture.ide.debug.vdm">
</debugModelPresentation>
</extension>
<!-- Adds the launch and java debug actions whenever a java relevant part is open.
Makes the Run and Debug bottons clickable in the VDM Explorer -->
<extension point="org.eclipse.ui.actionSetPartAssociations">
<actionSetPartAssociation
targetID="org.eclipse.debug.ui.launchActionSet">
<part
id="org.overture.ide.ui.VdmExplorer">
</part>
</actionSetPartAssociation>
</extension>
<extension
point="org.eclipse.ui.popupMenus">
<viewerContribution
id="org.overture.ide.debug.rulerbarPopupMenu"
targetID="org.overture.ide.ui.rulerbar">
<action
class="org.overture.ide.debug.ui.actions.VdmLineBreakpointPropertiesRulerActionDelegate"
id="org.overture.ide.rulerbar.vdmLineBreakpointAction"
label="Breakpoint properties..."
menubarPath="addictions">
</action>
</viewerContribution>
</extension>
<extension
point="org.eclipse.ui.propertyPages">
<page
class="org.overture.ide.debug.ui.propertypages.VdmLineBreakpointPropertyPage"
id="org.overture.ide.debug.vdmLineBreakpointPropertyPage"
name="Breakpoint properties"
objectClass="org.overture.ide.debug.core.model.internal.VdmLineBreakpoint"
>
</page>
</extension>
<extension
point="org.eclipse.ui.console.consoleFactories">
<consoleFactory
class="org.overture.ide.debug.core.ConsoleFactoryDebug"
icon="icons/cview16/vdmpp_file_tsk.png"
label="Overture Debug">
</consoleFactory>
</extension>
<extension
point="org.eclipse.ui.console.consoleFactories">
<consoleFactory
class="org.overture.ide.debug.core.ConsoleFactoryLogging"
label="VDM Debug log">
</consoleFactory>
</extension>
<extension
point="org.eclipse.ui.console.consolePageParticipants">
<consolePageParticipant
class="org.overture.ide.debug.ui.ProcessConsolePageParticipant"
id="org.overture.ide.debug.ui.processConsolePageParticipant">
<enablement>
<instanceof value="org.overture.ide.debug.ui.VdmDebugConsole"/>
</enablement>
</consolePageParticipant>
</extension>
<!-- This ensures that the debug context menu shows correctly. The solution is inspired by the blog
found on the following link: http://www.sigasi.com/content/run-menu-item-strangely-disappearing-context-menu
-->
<extension point="org.eclipse.core.runtime.adapters">
<factory class="org.eclipse.core.runtime.IAdaptable"
adaptableType="org.eclipse.core.resources.IResource">
<adapter type="org.eclipse.debug.ui.actions.ILaunchable"/>
</factory>
</extension>
<extension
point="org.eclipse.ui.views">
<view
allowMultiple="false"
category="org.overture.ide.ui.view.category"
class="org.overture.ide.debug.logging.LogView"
id="org.overture.ide.debug.logging.logview"
name="VDM Debug Log Viewer Events"
restorable="true">
</view>
</extension>
<extension point="org.eclipse.ui.views">
<view
category="org.overture.ide.ui.view.category"
class="org.overture.ide.debug.ui.log.VdmDebugLogView"
id="org.overture.ide.debug.ui.log.dbgpLogView"
name="Vdm Log Viewer Messages">
</view>
<!--view
name="%DebugView.name"
icon="icons/eview16/debug_view.gif"
category="org.overture.ide.ui.view.category"
class="org.overture.ide.debug.internal.ui.views.launch.VdmLaunchView"
id="org.overture.ide.debug.ui.DebugView">
</view-->
</extension>
<!--
====================================
Watch
====================================
-->
<extension
point="org.eclipse.debug.core.watchExpressionDelegates">
<watchExpressionDelegate
debugModel="org.overture.ide.debug.vdm"
delegateClass="org.overture.ide.debug.core.model.internal.VdmWatchExpressionDelegate">
</watchExpressionDelegate>
</extension>
<extension
point="org.eclipse.ui.actionSets">
<actionSet
id="org.overture.ide.debug.debugActionSet"
label="Vdm Action Set"
visible="false">
<action
class="org.overture.ide.debug.ui.actions.VdmWatchAction"
definitionId="org.overture.ide.debug.command.watch"
icon="icons/dtool16/watch_exp.gif"
id="org.overture.ide.debug.action.watchAction"
label="Watch"
menubarPath="org.eclipse.ui.run/vdmGroup"
style="push">
<enablement>
<and>
<systemProperty
name="org.overture.ide.debug.core.debuggerActive"
value="true">
</systemProperty>
<objectClass
name="org.eclipse.jface.text.ITextSelection">
</objectClass>
</and>
</enablement>
</action>
</actionSet>
</extension>
<extension
point="org.eclipse.ui.commands">
<command
categoryId="org.eclipse.ui.category.textEditor"
defaultHandler="org.overture.ide.debug.ui.actions.WatchCommand"
id="org.overture.ide.debug.command.watch"
name="Watch Command">
</command>
</extension>
<extension
point="org.eclipse.core.expressions.propertyTesters">
<propertyTester
class="org.overture.ide.debug.ui.actions.PropertyTester1"
id="org.overture.ide.debug.propertyTester1"
namespace="org.overture.debug.ui"
properties="debuggerActive"
type="org.eclipse.core.resources.IResource">
</propertyTester>
</extension>
<!-- Watch context menu-->
<extension
point="org.eclipse.ui.popupMenus">
<viewerContribution
targetID="#TextEditorContext"
id="org.overture.ide.debug.ui.SourceUnitPopupActions">
<visibility>
<and>
<systemProperty
name="org.overture.ide.debug.core.debuggerActive"
value="true">
</systemProperty>
<objectClass
name="org.eclipse.jface.text.ITextSelection">
</objectClass>
</and>
</visibility>
<action
label="%Watch.label"
icon="icons/dtool16/watch_exp.gif"
helpContextId="watch_action_context"
class="org.overture.ide.debug.ui.actions.VdmWatchAction"
menubarPath="additions"
id="org.overture.ide.debug.ui.SourceUnitPopup.Watch">
</action>
</viewerContribution>
</extension>
<!-- Preference pages -->
<extension
point="org.eclipse.ui.preferencePages">
<page
category="org.overture.ide.ui.vdm"
class="org.overture.ide.debug.preferences.WorkbenchPreferencePage1"
id="org.overture.ide.debug.page1"
name="Debugger">
</page>
</extension>
</plugin>