Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 7c8027bc7a8faffdb963e45476b58e1a5dd06a01 (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
<?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.IPeerModel"/>
         </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>
      <shortcut
            id="org.eclipse.tcf.te.tcf.launch.ui.launchshortcut.attach.debug"
            label="%LaunchShortcut.Attach.name"
            icon="icons/obj16/attach.gif"
            modes="debug">
         <class class="org.eclipse.tcf.te.launch.ui.handler.LaunchShortcutHandler">
            <parameter name="typeId" value="org.eclipse.tcf.te.tcf.launch.type.attach"/>
         </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.attach"
                           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">
               <and>
                  <instanceof value="org.eclipse.tcf.te.tcf.locator.interfaces.nodes.IPeerModel"/>
                  <test property="org.eclipse.tcf.te.tcf.locator.hasRemoteService" value="Processes"/>
               </and>
            </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.IPeerModel"/>
         </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">
   <!-- Project explorer menu contributions -->
      <menuContribution locationURI="popup:org.eclipse.ui.navigator.ProjectExplorer#PopupMenu?before=additions">
         <separator name="org.eclipse.tcf.te.tcf.ui.launch.remote.app.launch" visible="true"/>
         <command
               commandId="org.eclipse.tcf.te.tcf.ui.launch.remote.app.command.run"
               disabledIcon="platform:/plugin/org.eclipse.debug.ui/icons/full/dtool16/run_exc.gif"
               icon="platform:/plugin/org.eclipse.debug.ui/icons/full/etool16/run_exc.gif"
               id="org.eclipse.tcf.te.tcf.ui.launch.remote.app.run"
               label="%LaunchShortcutHandler.Remote.App.run.name"
               style="push">
            <visibleWhen checkEnabled="false">
               <with variable="selection">
                  <iterate 
                        operator="and" 
                        ifEmpty="false">
                     <and>
                        <adapt type="org.eclipse.debug.ui.actions.ILaunchable"/>
                        <test 
                              forcePluginActivation="true"
                              property="org.eclipse.tcf.te.launch.core.isValidLaunchConfigType"
                              value="org.eclipse.tcf.te.tcf.launch.type.remote.app"
                              args="run"/>
                     </and>
                  </iterate>
               </with>
            </visibleWhen>
         </command>
         <command
               commandId="org.eclipse.tcf.te.tcf.ui.launch.remote.app.command.debug"
               disabledIcon="platform:/plugin/org.eclipse.debug.ui/icons/full/dtool16/debug_exc.gif"
               icon="platform:/plugin/org.eclipse.debug.ui/icons/full/etool16/debug_exc.gif"
               id="org.eclipse.tcf.te.tcf.ui.launch.remote.app.debug"
               label="%LaunchShortcutHandler.Remote.App.debug.name"
               style="push">
            <visibleWhen checkEnabled="false">
               <with variable="selection">
                  <iterate 
                        operator="and" 
                        ifEmpty="false">
                     <and>
                        <adapt type="org.eclipse.debug.ui.actions.ILaunchable"/>
                        <test 
                              forcePluginActivation="true"
                              property="org.eclipse.tcf.te.launch.core.isValidLaunchConfigType"
                              value="org.eclipse.tcf.te.tcf.launch.type.remote.app"
                              args="run"/>
                     </and>
                  </iterate>
               </with>
            </visibleWhen>
         </command>
      </menuContribution>
   <!-- Target explorer menu contributions -->
      <menuContribution locationURI="popup:org.eclipse.tcf.te.ui.views.View#Popup?before=additions">
         <separator name="org.eclipse.tcf.te.tcf.ui.launch.remote.app.launch" visible="true"/>
         <command
               commandId="org.eclipse.tcf.te.tcf.ui.launch.remote.app.command.run"
               disabledIcon="platform:/plugin/org.eclipse.debug.ui/icons/full/dtool16/run_exc.gif"
               icon="platform:/plugin/org.eclipse.debug.ui/icons/full/etool16/run_exc.gif"
               id="org.eclipse.tcf.te.tcf.ui.launch.remote.app.run"
               label="%LaunchShortcutHandler.Remote.App.run.name"
               style="push">
            <visibleWhen checkEnabled="false">
            <with variable="selection">
               <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>
            </with>
            </visibleWhen>
         </command>
         <command
               commandId="org.eclipse.tcf.te.tcf.ui.launch.remote.app.command.debug"
               disabledIcon="platform:/plugin/org.eclipse.debug.ui/icons/full/dtool16/debug_exc.gif"
               icon="platform:/plugin/org.eclipse.debug.ui/icons/full/etool16/debug_exc.gif"
               id="org.eclipse.tcf.te.tcf.ui.launch.remote.app.debug"
               label="%LaunchShortcutHandler.Remote.App.debug.name"
               style="push">
            <visibleWhen checkEnabled="false">
            <with variable="selection">
               <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>
            </with>
            </visibleWhen>
         </command>
      </menuContribution>
   </extension>

<!-- Command contributions -->
   <extension point="org.eclipse.ui.commands">
      <command
            categoryId="org.eclipse.tcf.te.ui.commands.category"
            id="org.eclipse.tcf.te.tcf.ui.launch.remote.app.command.run"
            name="%LaunchShortcutHandler.Remote.App.run.name"/>
      <command
            categoryId="org.eclipse.tcf.te.ui.commands.category"
            id="org.eclipse.tcf.te.tcf.ui.launch.remote.app.command.debug"
            name="%LaunchShortcutHandler.Remote.App.debug.name"/>
   </extension>

<!-- Handler contributions -->
   <extension point="org.eclipse.ui.handlers">
      <handler commandId="org.eclipse.tcf.te.tcf.ui.launch.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.ui.launch.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>
   </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