Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: b064e589fdf2842d7a81518dae09aa647bd4559f (plain) (blame)
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
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?><!--
    Copyright (c) 2010 Wind River Systems, Inc. and others.
    All rights reserved. This program and the accompanying materials
    are made available under the terms of the Eclipse Public License v1.0
    which accompanies this distribution, and is available at
    http://www.eclipse.org/legal/epl-v10.html

    Contributors:
        Wind River Systems - initial API and implementation
 -->

<plugin>

   <extension-point id="launch_context" name="TCF Launch Context" schema="schema/launch_context.exsd"/>

   <extension point="org.eclipse.tm.tcf.startup"/>

   <extension
        id="org.eclipse.tm.tcf.debug.ui.adapters"
        point="org.eclipse.core.runtime.adapters">
      <factory
         class="org.eclipse.tm.internal.tcf.debug.ui.adapters.TCFLaunchAdapterFactory"
         adaptableType="org.eclipse.tm.internal.tcf.debug.model.TCFLaunch">
         <adapter type="org.eclipse.debug.internal.ui.viewers.model.provisional.IElementContentProvider"/>
         <adapter type="org.eclipse.debug.internal.ui.viewers.model.provisional.IElementLabelProvider"/>
         <adapter type="org.eclipse.debug.internal.ui.viewers.model.provisional.IModelProxyFactory"/>
         <adapter type="org.eclipse.debug.ui.contexts.ISuspendTrigger"/>
      </factory>
      <factory
         class="org.eclipse.tm.internal.tcf.debug.ui.adapters.TCFNodeAdapterFactory"
         adaptableType="org.eclipse.tm.internal.tcf.debug.ui.model.TCFNode">
         <adapter type="org.eclipse.debug.ui.actions.IToggleBreakpointsTarget"/>
         <adapter type="org.eclipse.debug.ui.actions.IToggleBreakpointsTargetExtension"/>
         <adapter type="org.eclipse.ui.views.properties.IPropertySource"/>
      </factory>
   </extension>

   <extension point="org.eclipse.debug.ui.debugModelPresentations">
      <debugModelPresentation
         class = "org.eclipse.tm.internal.tcf.debug.ui.model.TCFModelPresentation"
         id = "org.eclipse.tm.tcf.debug">
      </debugModelPresentation>
   </extension>

   <extension point="org.eclipse.debug.ui.launchConfigurationTypeImages">
      <launchConfigurationTypeImage
            icon="icons/tcf.gif"
            configTypeID="org.eclipse.tm.tcf.debug.LaunchConfigurationType"
            id="org.eclipse.tm.tcf.debug.LaunchConfigurationTypeImage">
      </launchConfigurationTypeImage>
   </extension>

   <extension point="org.eclipse.debug.ui.launchConfigurationTabGroups">
      <launchConfigurationTabGroup
            type="org.eclipse.tm.tcf.debug.LaunchConfigurationType"
            description="Run or debug a program using Target Communication Framework"
            class="org.eclipse.tm.internal.tcf.debug.ui.launch.TCFTabGroup"
            id="org.eclipse.tm.tcf.debug.LaunchConfigurationTabGroup">
      </launchConfigurationTabGroup>
   </extension>

   <extension point="org.eclipse.core.expressions.propertyTesters">
      <propertyTester
      		namespace="org.eclipse.tm.tcf.launch"
            properties="isExecutable"
            type="org.eclipse.core.runtime.IAdaptable"
            class="org.eclipse.tm.internal.tcf.debug.ui.launch.TCFPropertyTester"
            id="org.eclipse.tm.tcf.launch.PropertyTester">
      </propertyTester>
   </extension>

   <extension point="org.eclipse.debug.ui.launchShortcuts">
      <shortcut
         label="TCF Application"
         icon="icons/tcf.gif"
         helpContextId="org.eclipse.tm.tcf.debug.ui.shortcut_tcf_application"
         modes="run, debug"
         class="org.eclipse.tm.internal.tcf.debug.ui.launch.TCFLaunchShortcut"
         description="Launch an application using Target Communication Framework (TCF)"
         id="org.eclipse.tm.tcf.debug.ui.TCFShortcut">
         <description
            description="Runs an application using Target Communication Framework (TCF)"
            mode="run">
         </description>
         <description
            description="Debugs an application using Target Communication Framework (TCF)"
            mode="debug">
         </description>
         <contextualLaunch>
            <enablement>
               <with variable="selection">
                  <count value="1"/>
                  <iterate>
                     <test
                        forcePluginActivation="true"
                        property="org.eclipse.tm.tcf.launch.isExecutable"/>
                  </iterate>
               </with>
            </enablement>
         </contextualLaunch>
         <configurationType
            id="org.eclipse.tm.tcf.debug.LaunchConfigurationType">
         </configurationType>
      </shortcut>
   </extension>

   <extension
         point="org.eclipse.ui.contexts">
      <context
            name="Debugging using Target Communication Framework"
            description="Debugging using Target Communication Framework"
            id="org.eclipse.tm.tcf.debug.ui.debugging"
            parentId="org.eclipse.debug.ui.debugging">
      </context>
   </extension>

   <extension
         point="org.eclipse.ui.views">
      <view
            name="TCF Trace"
            icon="icons/tcf.gif"
            category="org.eclipse.debug.ui"
            class="org.eclipse.tm.internal.tcf.debug.ui.trace.TraceView"
            id="org.eclipse.tm.tcf.TraceView">
      </view>
   </extension>

   <extension
         point="org.eclipse.ui.perspectiveExtensions">
      <perspectiveExtension
            targetID="org.eclipse.debug.ui.DebugPerspective">
         <view
               relative="org.eclipse.ui.console.ConsoleView"
               relationship="stack"
               visible="false"
               id="org.eclipse.tm.tcf.TraceView">
         </view>
      </perspectiveExtension>
   </extension>

   <extension point="org.eclipse.ui.editors.annotationTypes">
      <type
         name="org.eclipse.tm.tcf.debug.top_frame">
      </type>
      <type
         name="org.eclipse.tm.tcf.debug.stack_frame">
      </type>
   </extension>

   <extension point="org.eclipse.ui.editors.markerAnnotationSpecification">
      <specification
         annotationImageProvider="org.eclipse.tm.internal.tcf.debug.ui.model.TCFAnnotationImageProvider"
         annotationType="org.eclipse.tm.tcf.debug.top_frame"
         colorPreferenceKey="currentIPColor"
         colorPreferenceValue="198,219,174"
         highlightPreferenceKey="currentIPHighlight"
         highlightPreferenceValue="true"
         label="%debugCurrentInstructionPointer"
         overviewRulerPreferenceKey="currentIPOverviewRuler"
         overviewRulerPreferenceValue="true"
         presentationLayer="6"
         textPreferenceKey="currentIPIndication"
         textPreferenceValue="false"
         verticalRulerPreferenceKey="currentIPVerticalRuler"
         verticalRulerPreferenceValue="true">
      </specification>
      <specification
         annotationImageProvider="org.eclipse.tm.internal.tcf.debug.ui.model.TCFAnnotationImageProvider"
         annotationType="org.eclipse.tm.tcf.debug.stack_frame"
         colorPreferenceKey="secondaryIPColor"
         colorPreferenceValue="219,235,204"
         highlightPreferenceKey="secondaryIPHighlight"
         highlightPreferenceValue="true"
         label="%debugCallStack"
         overviewRulerPreferenceKey="secondaryIPOverviewRuler"
         overviewRulerPreferenceValue="true"
         presentationLayer="6"
         textPreferenceKey="secondaryIPIndication"
         textPreferenceValue="false"
         verticalRulerPreferenceKey="secondaryIPVerticalRuler"
         verticalRulerPreferenceValue="true">
      </specification>
   </extension>

   <extension point="org.eclipse.debug.ui.detailPaneFactories">
      <detailFactories
             class="org.eclipse.tm.internal.tcf.debug.ui.model.TCFDetailPaneFactory"
             id="org.eclipse.tm.tcf.debug.DetailPaneFactory">
         <enablement>
            <with variable="selection">
               <iterate>
                  <or>
                     <instanceof value="org.eclipse.tm.internal.tcf.debug.ui.model.TCFNode"/>
                  </or>
               </iterate>
            </with>
         </enablement>
      </detailFactories>
   </extension>

   <extension point="org.eclipse.ui.popupMenus">
      <!-- TCFLaunch popup menu contributions -->
      <objectContribution
            id="org.eclipse.tm.tcf.debug.ui.TCFLaunch"
            objectClass="org.eclipse.tm.internal.tcf.debug.model.TCFLaunch">
         <action
            id="org.eclipse.tm.tcf.debug.ui.actions.Signals"
            class="org.eclipse.tm.internal.tcf.debug.ui.commands.SignalsCommand"
            icon="icons/signals.gif"
            label="%Signals.label"
            menubarPath="additions">
         </action>
      </objectContribution>

      <!-- TCFNode popup menu contributions -->
      <objectContribution
            id="org.eclipse.tm.tcf.debug.ui.TCFNode"
            objectClass="org.eclipse.tm.internal.tcf.debug.ui.model.TCFNode">
         <action
            id="org.eclipse.tm.tcf.debug.ui.actions.Signals"
            class="org.eclipse.tm.internal.tcf.debug.ui.commands.SignalsCommand"
            icon="icons/signals.gif"
            label="%Signals.label"
            menubarPath="additions">
            <enablement>
               <pluginState
                     value="activated"
                     id="org.eclipse.tm.tcf.debug.ui">
               </pluginState>
            </enablement>
         </action>
         <action
            id="org.eclipse.tm.tcf.debug.ui.actions.MemoryMap"
            class="org.eclipse.tm.internal.tcf.debug.ui.commands.MemoryMapCommand"
            icon="icons/memory-map.gif"
            label="%MemoryMap.label"
            menubarPath="additions">
            <enablement>
               <pluginState
                     value="activated"
                     id="org.eclipse.tm.tcf.debug.ui">
               </pluginState>
            </enablement>
         </action>
         <action
            id="org.eclipse.tm.tcf.debug.ui.actions.Refresh"
            class="org.eclipse.tm.internal.tcf.debug.ui.commands.RefreshCommand"
            label="%Refresh.label"
            menubarPath="additions">
            <enablement>
               <pluginState
                     value="activated"
                     id="org.eclipse.tm.tcf.debug.ui">
               </pluginState>
            </enablement>
         </action>
      </objectContribution>

      <!-- TCFNodeExpression popup menu contributions -->
      <objectContribution
            id="org.eclipse.tm.tcf.debug.ui.TCFNodeExpression"
            objectClass="org.eclipse.tm.internal.tcf.debug.ui.model.TCFNodeExpression">
         <action
            id="org.eclipse.tm.tcf.debug.ui.actions.ViewMemory"
            class="org.eclipse.tm.internal.tcf.debug.ui.commands.ViewMemoryCommand"
            label="%ViewMemory.label"
            menubarPath="variableGroup">
            <enablement>
               <pluginState
                     value="activated"
                     id="org.eclipse.tm.tcf.debug.ui">
               </pluginState>
            </enablement>
         </action>
      </objectContribution>

      <!-- ICastToType popup menu contributions -->
      <objectContribution
            id="org.eclipse.tm.tcf.debug.ui.CastToType"
            objectClass="org.eclipse.tm.internal.tcf.debug.ui.model.ICastToType">
         <action
               label="%RestoreDefaultType.label"
               helpContextId="restore_default_type_action_context"
               tooltip="%RestoreDefaultType.tooltip"
               class="org.eclipse.tm.internal.tcf.debug.ui.commands.RestoreDefaultTypeCommand"
               menubarPath="variableGroup"
               enablesFor="1"
               id="org.eclipse.tm.tcf.debug.ui.commands.RestoreDefaultType">
            <enablement>
               <pluginState
                     value="activated"
                     id="org.eclipse.tm.tcf.debug.ui">
               </pluginState>
            </enablement>
         </action>
         <action
               label="%CastToType.label"
               icon="icons/casttotype_co.gif"
               helpContextId="cast_to_type_action_context"
               tooltip="%CastToType.tooltip"
               class="org.eclipse.tm.internal.tcf.debug.ui.commands.CastToTypeCommand"
               menubarPath="variableGroup"
               enablesFor="1"
               id="org.eclipse.tm.tcf.debug.ui.commands.CastToType">
            <enablement>
               <pluginState
                     value="activated"
                     id="org.eclipse.tm.tcf.debug.ui">
               </pluginState>
            </enablement>
         </action>
         <action
               label="%CastToArray.label"
               icon="icons/showasarray_co.gif"
               helpContextId="cast_to_array_action_context"
               tooltip="%CastToArray.tooltip"
               class="org.eclipse.tm.internal.tcf.debug.ui.commands.CastToArrayCommand"
               menubarPath="variableGroup"
               enablesFor="1"
               id="org.eclipse.tm.tcf.debug.ui.commands.CastToArray">
            <enablement>
               <pluginState
                     value="activated"
                     id="org.eclipse.tm.tcf.debug.ui">
               </pluginState>
            </enablement>
         </action>
      </objectContribution>

      <!-- IWatchInExpressions -->
      <objectContribution
            id="org.eclipse.tm.tcf.debug.ui.WatchInExpressions"
            objectClass="org.eclipse.tm.internal.tcf.debug.ui.model.IWatchInExpressions">
         <action
            id="org.eclipse.tm.tcf.debug.ui.actions.WatchInExpressions"
            class="org.eclipse.tm.internal.tcf.debug.ui.commands.WatchInExpressionsCommand"
            label="%WatchInExpressions.label"
            menubarPath="additions">
            <enablement>
               <pluginState
                     value="activated"
                     id="org.eclipse.tm.tcf.debug.ui">
               </pluginState>
            </enablement>
         </action>
      </objectContribution>
   </extension>

   <extension
         point="org.eclipse.debug.ui.memoryRenderings">
      <renderingBindings
            defaultIds="org.eclipse.debug.ui.rendering.raw_memory"
            primaryId="org.eclipse.debug.ui.rendering.raw_memory"
            renderingIds="org.eclipse.debug.ui.rendering.raw_memory,org.eclipse.debug.ui.rendering.ascii,org.eclipse.debug.ui.rendering.signedint,org.eclipse.debug.ui.rendering.unsignedint,org.eclipse.debug.ui.rendering.hexint">
         <enablement>
            <instanceof value="org.eclipse.tm.internal.tcf.debug.ui.model.TCFMemoryBlockRetrieval$MemoryBlock"/>
         </enablement>
      </renderingBindings>
   </extension>

   <extension point="org.eclipse.debug.ui.debugModelContextBindings">
      <modelContextBinding
            contextId="org.eclipse.tm.tcf.debug.ui.debugging"
            debugModelId="org.eclipse.tm.tcf.debug"/>
   </extension>

   <extension point="org.eclipse.ui.propertyPages">
      <page class="org.eclipse.tm.internal.tcf.debug.ui.properties.TCFPropertyPage"
            id="org.eclipse.tcf.debug.node.propertyPage"
            name="%propertyPage.name">
         <filter name="debugModelId" value="org.eclipse.tm.tcf.debug"/>
         <enabledWhen>
            <instanceof
                  name="org.eclipse.cdt.debug.core.model.ICBreakpoint"
                  value="org.eclipse.tm.internal.tcf.debug.ui.model.TCFNode"/>
         </enabledWhen>
      </page>
   </extension>

</plugin>

Back to the top