Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 1a2c49a1ed083864281c2c4a8c2be5b9f2613c9e (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
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>

<!-- Service contributions -->
   <extension point="org.eclipse.tcf.te.runtime.services.services">
      <service
            class="org.eclipse.tcf.te.tcf.launch.ui.internal.services.DebugService"
            id="org.eclipse.tcf.te.tcf.launch.core.services.debug">
         <serviceType
               bundleId="org.eclipse.tcf.te.runtime.services"
               class="org.eclipse.tcf.te.runtime.services.interfaces.IDebugService"/>
         <enablement>
            <instanceof value="org.eclipse.tcf.te.tcf.locator.interfaces.nodes.IPeerNode"/>
         </enablement>
      </service>
   </extension>

<!-- Launch configuration type contributions -->
   <extension point="org.eclipse.debug.ui.launchConfigurationTypeImages">
      <launchConfigurationTypeImage
            configTypeID="org.eclipse.tcf.te.tcf.launch.type.remote.app"
            icon="icons/obj16/remote_app.gif"
            id="org.eclipse.tcf.te.tcf.launch.type.remote.app.image"/>
      <launchConfigurationTypeImage
            configTypeID="org.eclipse.tcf.te.tcf.launch.type.attach"
            icon="icons/obj16/attach.gif"
            id="org.eclipse.tcf.te.tcf.launch.type.attach.image"/>
   </extension>

<!-- Launch configuration tab group contributions -->
   <extension point="org.eclipse.debug.ui.launchConfigurationTabGroups">
      <launchConfigurationTabGroup
            class="org.eclipse.tcf.te.tcf.launch.ui.remote.app.LaunchConfigurationTabGroup"
            id="org.eclipse.tcf.te.tcf.launch.type.remote.app.tabgroup"
            type="org.eclipse.tcf.te.tcf.launch.type.remote.app"/>
      <launchConfigurationTabGroup
            class="org.eclipse.tcf.te.tcf.launch.ui.attach.LaunchConfigurationTabGroup"
            id="org.eclipse.tcf.te.tcf.launch.type.attach.tabgroup"
            type="org.eclipse.tcf.te.tcf.launch.type.attach"/>
   </extension>
   
 <!-- Launch shortcut contributions -->
   <extension point="org.eclipse.debug.ui.launchShortcuts">
      <shortcut
            id="org.eclipse.tcf.te.tcf.launch.ui.launchshortcut.remote.app.run"
            label="%LaunchShortcut.Remote.App.name"
            icon="icons/obj16/remote_app.gif"
            modes="run">
         <class class="org.eclipse.tcf.te.launch.ui.handler.LaunchShortcutHandler">
            <parameter name="typeId" value="org.eclipse.tcf.te.tcf.launch.type.remote.app"/>
         </class>
         <contextualLaunch>
            <enablement>
               <with variable="selection">
                  <iterate ifEmpty="false">
                     <test 
                           forcePluginActivation="true"
                           property="org.eclipse.tcf.te.launch.core.isValidLaunchConfigType"
                           value="org.eclipse.tcf.te.tcf.launch.type.remote.app"
                           args="run"/>
                  </iterate>
               </with>
            </enablement>
         </contextualLaunch>
      </shortcut>
      <shortcut
            id="org.eclipse.tcf.te.tcf.launch.ui.launchshortcut.remote.app.debug"
            label="%LaunchShortcut.Remote.App.name"
            icon="icons/obj16/remote_app.gif"
            modes="debug">
         <class class="org.eclipse.tcf.te.launch.ui.handler.LaunchShortcutHandler">
            <parameter name="typeId" value="org.eclipse.tcf.te.tcf.launch.type.remote.app"/>
         </class>
         <contextualLaunch>
            <enablement>
               <with variable="selection">
                  <iterate ifEmpty="false">
                     <test 
                           forcePluginActivation="true"
                           property="org.eclipse.tcf.te.launch.core.isValidLaunchConfigType"
                           value="org.eclipse.tcf.te.tcf.launch.type.remote.app"
                           args="debug"/>
                  </iterate>
               </with>
            </enablement>
         </contextualLaunch>
      </shortcut>
   </extension>

<!-- Editor page contributions -->
   <extension point="org.eclipse.tcf.te.ui.views.editorPages">
      <editorPage
            class="org.eclipse.tcf.te.tcf.launch.ui.editor.MemoryMapEditorPage"
            name="%MemoryMapEditorPage.name"
            id="org.eclipse.tcf.te.tcf.launch.ui.MemoryMapEditorPage">
      </editorPage>

      <editorPage
            class="org.eclipse.tcf.te.tcf.launch.ui.editor.PathMapEditorPage"
            name="%PathMapEditorPage.name"
            id="org.eclipse.tcf.te.tcf.launch.ui.PathMapEditorPage">
      </editorPage>

      <editorPage
            class="org.eclipse.tcf.te.tcf.launch.ui.editor.SourceLookupEditorPage"
            name="%SourceLookupEditorPage.name"
            id="org.eclipse.tcf.te.launch.ui.SourceLookupEditorPage">
      </editorPage>
   </extension>

<!-- Editor page binding contributions -->
   <extension point="org.eclipse.tcf.te.ui.views.editorPageBindings">
      <editorPageBinding
            id="org.eclipse.tcf.te.tcf.launch.ui.binding.LaunchEditorPage"
            pageId="org.eclipse.tcf.te.launch.ui.LaunchEditorPage"
            insertAfter="last">
         <enablement>
            <with variable="activeEditorInput">
               <adapt type="org.eclipse.tcf.te.tcf.locator.interfaces.nodes.IPeerNode">
                  <test property="org.eclipse.tcf.te.tcf.locator.hasRemoteService" value="Processes"/>
               </adapt>
            </with>
         </enablement>
      </editorPageBinding>
      <editorPageBinding
            id="org.eclipse.tcf.te.tcf.launch.ui.binding.SourceLookupEditorPage"
            pageId="org.eclipse.tcf.te.launch.ui.SourceLookupEditorPage"
            insertBefore="org.eclipse.tcf.te.launch.ui.LaunchEditorPage">
         <enablement>
            <with variable="activeEditorInput">
               <adapt type="org.eclipse.tcf.te.tcf.locator.interfaces.nodes.IPeerNode">
                  <test property="org.eclipse.tcf.te.core.canAdaptTo" value="org.eclipse.debug.core.ILaunchConfiguration" args="forceAdapterLoad"/>
               </adapt>
            </with>
         </enablement>
      </editorPageBinding>
      <editorPageBinding
            id="org.eclipse.tcf.te.tcf.launch.ui.binding.PathMapEditorPage"
            pageId="org.eclipse.tcf.te.tcf.launch.ui.PathMapEditorPage"
            insertBefore="org.eclipse.tcf.te.launch.ui.SourceLookupEditorPage,org.eclipse.tcf.te.launch.ui.LaunchEditorPage">
         <enablement>
            <with variable="activeEditorInput">
               <adapt type="org.eclipse.tcf.te.tcf.locator.interfaces.nodes.IPeerNode">
                  <test property="org.eclipse.tcf.te.tcf.locator.hasRemoteService" value="PathMap"/>
               </adapt>
            </with>
         </enablement>
      </editorPageBinding>
      <editorPageBinding
            id="org.eclipse.tcf.te.tcf.launch.ui.binding.MemoryMapEditorPage"
            pageId="org.eclipse.tcf.te.tcf.launch.ui.MemoryMapEditorPage"
            insertBefore="org.eclipse.tcf.te.tcf.launch.ui.PathMapEditorPage,org.eclipse.tcf.te.launch.ui.SourceLookupEditorPage,org.eclipse.tcf.te.launch.ui.LaunchEditorPage">
         <enablement>
            <with variable="activeEditorInput">
               <adapt type="org.eclipse.tcf.te.tcf.locator.interfaces.nodes.IPeerNode">
                  <test property="org.eclipse.tcf.te.tcf.locator.hasRemoteService" value="MemoryMap"/>
               </adapt>
            </with>
         </enablement>
      </editorPageBinding>
   </extension>

<!-- Navigator viewer contributions -->
   <extension point="org.eclipse.ui.navigator.viewer">
      <viewerContentBinding viewerId="org.eclipse.tcf.te.ui.views.View">
         <includes>
            <contentExtension 
                  pattern="org.eclipse.tcf.te.tcf.launch.ui.navigator.*"
                  isRoot="false"/>
         </includes>
      </viewerContentBinding>
   </extension>
   
<!-- Navigator content contributions -->
   <extension point="org.eclipse.ui.navigator.navigatorContent">
      <navigatorContent
            id="org.eclipse.tcf.te.tcf.launch.ui.navigator.content"
            name="%LauchTree.name"
      		icon="icons/obj16/launches_root.gif"
            activeByDefault="false"
            contentProvider="org.eclipse.tcf.te.launch.ui.viewer.LaunchNavigatorContentProvider"
            labelProvider="org.eclipse.tcf.te.launch.ui.viewer.LaunchTreeLabelProvider"
            priority="lowest">
         <triggerPoints>
            <instanceof value="org.eclipse.tcf.te.tcf.locator.interfaces.nodes.IPeerNode"/>
         </triggerPoints>
         <possibleChildren>
            <instanceof value="org.eclipse.tcf.te.launch.ui.model.LaunchNode"/>
         </possibleChildren>
         <commonSorter class="org.eclipse.tcf.te.launch.ui.viewer.LaunchTreeViewerSorter"/>
      </navigatorContent>
   </extension>

<!-- Menu contributions -->
   <extension point="org.eclipse.ui.menus">
     
   <!-- Target explorer menu contributions -->
      <menuContribution locationURI="popup:org.eclipse.tcf.te.ui.views.View#Popup?after=group.connection">
         <menu
               id="org.eclipse.tcf.te.tcf.launch.ui.menu.diagnostics"
               label="%menu.diagnostics.label">
            <command
                  commandId="org.eclipse.tcf.te.tcf.launch.ui.command.runtests"
                  id="org.eclipse.tcf.te.tcf.launch.ui.commands.runtests"
                  label="%command.runtests.label"
                  tooltip="%command.runtests.tooltip">
            </command>
            <command
                  commandId="org.eclipse.tcf.te.tcf.launch.ui.command.runtestsloop"
                  id="org.eclipse.tcf.te.tcf.launch.ui.commands.runtestsloop"
                  label="%command.runtestsloop.label"
                  tooltip="%command.runtestsloop.tooltip">
            </command>
            <separator name="additions"/>
            
            <visibleWhen checkEnabled="false">
               <with variable="selection">
                  <count value="1"/>
                  <iterate operator="and" ifEmpty="false">
                     <adapt type="org.eclipse.tcf.te.tcf.locator.interfaces.nodes.IPeerNode">
                        <and>
                           <test property="org.eclipse.tcf.te.tcf.locator.hasRemoteService" value="Diagnostics"/>
                           <or>
                              <not>
                                 <test
                                       forcePluginActivation="true"
                                       property="org.eclipse.tcf.te.runtime.services.hasService"
                                       value="org.eclipse.tcf.te.runtime.services.interfaces.IMenuService"/>
                              </not>
                              <test
                                    property="org.eclipse.tcf.te.runtime.services.menu.isVisible"
                                    args="org.eclipse.tcf.te.tcf.launch.ui.menu.diagnostics"
                                    value="true"/>
                           </or>
                        </and>
                     </adapt>
                  </iterate>
               </with>
            </visibleWhen>
         </menu>
      </menuContribution>

      <menuContribution locationURI="toolbar:org.eclipse.tcf.te.tcf.launch.ui.MemoryMapEditorPage?after=group.launch.rundebug">
         <command commandId="org.eclipse.tcf.te.tcf.ui.editor.command.debug">
            <visibleWhen checkEnabled="false">
               <reference definitionId="te.expressions.editor.hasRunControl"/>
            </visibleWhen>
         </command>
      </menuContribution>

      <menuContribution locationURI="toolbar:org.eclipse.tcf.te.tcf.launch.ui.PathMapEditorPage?after=group.launch.rundebug">
         <command commandId="org.eclipse.tcf.te.tcf.ui.editor.command.debug">
            <visibleWhen checkEnabled="false">
               <reference definitionId="te.expressions.editor.hasRunControl"/>
            </visibleWhen>
         </command>
      </menuContribution>

      <menuContribution locationURI="toolbar:org.eclipse.tcf.te.launch.ui.SourceLookupEditorPage?after=group.launch.rundebug">
         <command commandId="org.eclipse.tcf.te.tcf.ui.editor.command.debug">
            <visibleWhen checkEnabled="false">
               <reference definitionId="te.expressions.editor.hasRunControl"/>
            </visibleWhen>
         </command>
      </menuContribution>

   </extension>

<!-- Command contributions -->
   <extension point="org.eclipse.ui.commands">
      <command
            categoryId="org.eclipse.tcf.te.ui.commands.category"
            helpContextId="org.eclipse.tcf.te.tcf.launch.ui.remote.app.command_Run"
            id="org.eclipse.tcf.te.tcf.launch.ui.remote.app.command.run"
            name="%command.run.name"/>
      <command
            categoryId="org.eclipse.tcf.te.ui.commands.category"
            helpContextId="org.eclipse.tcf.te.tcf.launch.ui.remote.app.command_RunDebug"
            id="org.eclipse.tcf.te.tcf.launch.ui.remote.app.command.debug"
            name="%command.debug.name"/>
            
      <!-- "Eclipse Diagnostics Tests" related commands -->
      <command
            categoryId="org.eclipse.tcf.te.ui.commands.category"
            helpContextId="org.eclipse.tcf.te.tcf.launch.ui.command_RunTests"
            id="org.eclipse.tcf.te.tcf.launch.ui.command.runtests"
            name="%command.runtests.name"/>
      <command
            categoryId="org.eclipse.tcf.te.ui.commands.category"
            helpContextId="org.eclipse.tcf.te.tcf.launch.ui.command_RunTestsLoop"
            id="org.eclipse.tcf.te.tcf.launch.ui.command.runtestsloop"
            name="%command.runtestsloop.name"/>
   </extension>

<!-- Handler contributions -->
   <extension point="org.eclipse.ui.handlers">
      <handler commandId="org.eclipse.tcf.te.tcf.launch.ui.remote.app.command.run">
         <class class="org.eclipse.tcf.te.launch.ui.handler.LaunchShortcutHandler">
            <parameter name="mode" value="run"/>
            <parameter name="typeId" value="org.eclipse.tcf.te.tcf.launch.type.remote.app"/>
         </class>
         <activeWhen>
            <with variable="activePartId">
               <or>
                  <equals value="org.eclipse.tcf.te.ui.views.View"/>
                  <equals value="org.eclipse.ui.navigator.ProjectExplorer"/>
               </or>
            </with>
         </activeWhen>
         <enabledWhen>
            <with variable="selection">
               <iterate 
                     operator="and" 
                     ifEmpty="false">
                  <test 
                        forcePluginActivation="true"
                        property="org.eclipse.tcf.te.launch.core.isValidLaunchConfigType"
                        value="org.eclipse.tcf.te.tcf.launch.type.remote.app"
                        args="run"/>
               </iterate>
            </with>
         </enabledWhen>
      </handler>
      <handler commandId="org.eclipse.tcf.te.tcf.launch.ui.remote.app.command.debug">
         <class class="org.eclipse.tcf.te.launch.ui.handler.LaunchShortcutHandler">
            <parameter name="mode" value="debug"/>
            <parameter name="typeId" value="org.eclipse.tcf.te.tcf.launch.type.remote.app"/>
         </class>
         <activeWhen>
            <with variable="activePartId">
               <or>
                  <equals value="org.eclipse.tcf.te.ui.views.View"/>
                  <equals value="org.eclipse.ui.navigator.ProjectExplorer"/>
               </or>
            </with>
         </activeWhen>
         <enabledWhen>
            <with variable="selection">
               <iterate 
                     operator="and" 
                     ifEmpty="false">
                  <test 
                        forcePluginActivation="true"
                        property="org.eclipse.tcf.te.launch.core.isValidLaunchConfigType"
                        value="org.eclipse.tcf.te.tcf.launch.type.remote.app"
                        args="debug"/>
               </iterate>
            </with>
         </enabledWhen>
      </handler>
      
      <!-- "Eclipse Diagnostics Tests" related handler -->
      <handler
            class="org.eclipse.tcf.te.tcf.launch.ui.handler.RunTestsCommandHandler"
            commandId="org.eclipse.tcf.te.tcf.launch.ui.command.runtests">
         <activeWhen>
            <with variable="activePartId">
               <equals value="org.eclipse.tcf.te.ui.views.View"/>
            </with>
         </activeWhen>
      </handler>

      <handler
            class="org.eclipse.tcf.te.tcf.launch.ui.handler.RunTestsLoopCommandHandler"
            commandId="org.eclipse.tcf.te.tcf.launch.ui.command.runtestsloop">
         <activeWhen>
            <with variable="activePartId">
               <equals value="org.eclipse.tcf.te.ui.views.View"/>
            </with>
         </activeWhen>
      </handler>
   </extension>

<!-- Property section contributions -->
   <extension point="org.eclipse.ui.views.properties.tabbed.propertySections">
      <propertySections contributorId="org.eclipse.tcf.te.ui">
         <propertySection
               id="org.eclipse.tcf.te.tcf.launch.ui.propertytab.remote.app"
               class="org.eclipse.tcf.te.tcf.launch.ui.remote.app.RemoteAppPropertiesSection"
               enablesFor="1"
               afterSection="org.eclipse.tcf.te.launch.ui.launchcontext"
               filter="org.eclipse.tcf.te.tcf.launch.ui.remote.app.RemoteAppFilter"
               tab="org.eclipse.tcf.te.launch.ui.propertytab.general"/>
      </propertySections>
   </extension>

   <extension point="org.eclipse.ui.views.properties.tabbed.propertySections">
      <propertySections contributorId="org.eclipse.ui.navigator.ProjectExplorer">
         <propertySection
               id="org.eclipse.tcf.te.tcf.launch.ui.project.propertytab.remote.app"
               class="org.eclipse.tcf.te.tcf.launch.ui.remote.app.RemoteAppPropertiesSection"
               enablesFor="1"
               afterSection="org.eclipse.tcf.te.launch.ui.project.launchcontext"
               filter="org.eclipse.tcf.te.tcf.launch.ui.remote.app.RemoteAppFilter"
               tab="org.eclipse.tcf.te.launch.ui.project.propertytab.general"/>
      </propertySections>
   </extension>
</plugin>

Back to the top