Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: fb0355d661084a9e9fc7bd2003b99c7c7ddea9f7 (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
<?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"/>
      </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.viewActions">
      <!-- Debug View menu contributions -->
      <viewContribution
            id="org.eclipse.tm.tcf.debug.ui.DebugView"
            targetID="org.eclipse.debug.ui.DebugView">
         <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="%SignalsCommand.label"
            toolbarPath="additions">
         </action>
      </viewContribution>
   </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="%SignalsCommand.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="%SignalsCommand.label"
            menubarPath="additions">
         </action>
      </objectContribution>
      
      <objectContribution
            id="org.eclipse.tm.tcf.debug.ui.CastToType"
            objectClass="org.eclipse.tm.internal.tcf.debug.ui.model.ICastToType">
         <action
               label="%RestoreDefaultTypeAction.label"
               helpContextId="restore_default_type_action_context"
               tooltip="%RestoreDefaultTypeAction.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="%CastToTypeAction.label"
               icon="icons/casttotype_co.gif"
               helpContextId="cast_to_type_action_context"
               tooltip="%CastToTypeAction.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="%CastToArrayAction.label"
               icon="icons/showasarray_co.gif"
               helpContextId="cast_to_array_action_context"
               tooltip="%CastToArrayAction.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>
   </extension>
   
</plugin>

Back to the top