Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: e1f1390862fad2a6ff9d4949de01342311e42020 (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
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>

<!-- Protocol state change listener contributions -->
   <extension point="org.eclipse.tcf.te.tcf.core.listeners">
      <protocolStateChangeListener
            class="org.eclipse.tcf.te.tcf.locator.listener.ProtocolStateChangeListener"
            id="org.eclipse.tcf.te.tcf.locator.protocolStateChangeListener">
      </protocolStateChangeListener>
   </extension>

<!-- Adapter factory contributions -->
   <extension point="org.eclipse.core.runtime.adapters">
      <factory
            adaptableType="org.eclipse.tcf.te.tcf.locator.interfaces.nodes.IPeerNode"
            class="org.eclipse.tcf.te.tcf.locator.internal.adapters.AdapterFactory">
         <adapter type="org.eclipse.tcf.te.runtime.persistence.interfaces.IPersistableURIProvider"/>
         <adapter type="org.eclipse.tcf.te.runtime.stepper.interfaces.IStepContext"/>
         <adapter type="org.eclipse.tcf.te.tcf.locator.interfaces.nodes.IPeerModel"/>
      </factory>
      <factory
            adaptableType="org.eclipse.tcf.protocol.IPeer"
            class="org.eclipse.tcf.te.tcf.locator.internal.adapters.AdapterFactory">
         <adapter type="org.eclipse.tcf.te.runtime.persistence.interfaces.IPersistableURIProvider"/>
         <adapter type="org.eclipse.tcf.te.runtime.stepper.interfaces.IStepContext"/>
         <adapter type="org.eclipse.tcf.te.tcf.locator.interfaces.nodes.IPeerNode"/>
      </factory>
      <factory
            adaptableType="org.eclipse.tcf.te.tcf.locator.interfaces.nodes.IPeerNodeProvider"
            class="org.eclipse.tcf.te.tcf.locator.internal.adapters.AdapterFactory">
         <adapter type="org.eclipse.tcf.te.runtime.persistence.interfaces.IPersistableURIProvider"/>
         <adapter type="org.eclipse.tcf.te.tcf.locator.interfaces.nodes.IPeerNode"/>
      </factory>
   </extension>

<!-- Model node factory delegate contributions -->
   <extension point="org.eclipse.tcf.te.runtime.model.factoryDelegates">
      <delegate
            class="org.eclipse.tcf.te.tcf.locator.internal.ModelNodeFactoryDelegate"
            id="org.eclipse.tcf.te.tcf.locator.model.factory.delegate">
         <nodeType class="org.eclipse.tcf.te.tcf.locator.interfaces.nodes.IPeerNode"/>
      </delegate>
   </extension>

<!-- Eclipse core expressions property tester -->
   <extension point="org.eclipse.core.expressions.propertyTesters">
      <propertyTester
            class="org.eclipse.tcf.te.tcf.locator.internal.PeerModelPropertyTester"
            id="org.eclipse.tcf.te.tcf.locator.LocatorModelPropertyTester"
            namespace="org.eclipse.tcf.te.tcf.locator"
            properties="name,nameRegex,osName,osNameRegex,hasLocalService,hasRemoteService,hasOfflineService,hasAttribute,isAttribute,isProxy,isValid,isValueAdd,isOfType,isRemotePeer"
            type="org.eclipse.tcf.te.tcf.locator.interfaces.nodes.IPeerNode">
      </propertyTester>

      <propertyTester
            class="org.eclipse.tcf.te.tcf.locator.internal.PeerModelPropertyTester"
            id="org.eclipse.tcf.te.tcf.locator.LocatorModelPropertyTester2"
            namespace="org.eclipse.tcf.te.tcf.locator"
            properties="name,nameRegex,osName,osNameRegex,hasLocalService,hasRemoteService,hasOfflineService,hasAttribute,isAttribute,isProxy,isValueAdd,isOfType,isRemotePeer"
            type="org.eclipse.tcf.protocol.IPeer">
      </propertyTester>

      <propertyTester
            class="org.eclipse.tcf.te.tcf.locator.internal.PeerModelPropertyTester"
            id="org.eclipse.tcf.te.tcf.locator.LocatorModelPropertyTester2"
            namespace="org.eclipse.tcf.te.tcf.locator"
            properties="name,nameRegex,osName,osNameRegex,hasLocalService,hasRemoteService,hasOfflineService,hasAttribute,isAttribute,isProxy,isValueAdd,isOfType,isRemotePeer"
            type="org.eclipse.tcf.te.tcf.locator.interfaces.nodes.ILocatorNode">
      </propertyTester>

      <propertyTester
            class="org.eclipse.tcf.te.tcf.locator.internal.SimulatorPropertyTester"
            id="org.eclipse.tcf.te.tcf.locator.SimulatorPropertyTester"
            namespace="org.eclipse.tcf.te.tcf.locator"
            properties="isSimulatorState,canStartSimulator"
            type="org.eclipse.tcf.te.tcf.locator.interfaces.nodes.IPeerNode">
      </propertyTester>
   </extension>

<!-- Persistence delegate contributions -->
   <extension point="org.eclipse.tcf.te.runtime.persistence.delegates">
      <delegate 
            id="org.eclipse.tcf.te.tcf.locator.persistence.gson.peer"
            class="org.eclipse.tcf.te.tcf.locator.persistence.GsonPeerPersistenceDelegate">
      </delegate>
   </extension>

<!-- Persistence delegate bindings contributions -->
   <extension
         point="org.eclipse.tcf.te.runtime.persistence.bindings">
      <binding
            delegateId="org.eclipse.tcf.te.tcf.locator.persistence.gson.peer"
            id="org.eclipse.tcf.te.tcf.locator.binding.gson.peer">
         <enablement>
            <with variable="container">
               <or>
                  <instanceof value="java.net.URI"/>
                  <instanceof value="java.lang.String"/>
                  <and>
                     <instanceof value="java.lang.Class"/>
                     <with variable="containerClass">
                        <equals value="java.lang.String"/>
                     </with>
                  </and>
               </or>
            </with>
            <with variable="context">
               <or>
                  <instanceof value="org.eclipse.tcf.protocol.IPeer"/>
                  <instanceof value="org.eclipse.tcf.te.tcf.locator.interfaces.nodes.IPeerNode"/>
                  <instanceof value="org.eclipse.tcf.te.tcf.locator.interfaces.nodes.IPeerNodeProvider"/>
                  <and>
                     <instanceof value="java.lang.Class"/>
                     <with variable="contextClass">
                        <equals value="org.eclipse.tcf.protocol.IPeer"/>
                     </with>
                  </and>
               </or>
            </with>
         </enablement>
      </binding>
   </extension>

<!-- Service contributions -->
   <extension point="org.eclipse.tcf.te.runtime.services.services">
      <service
            class="org.eclipse.tcf.te.tcf.locator.services.PropertiesAccessService"
            id="org.eclipse.tcf.te.runtime.services.tcf.propertiesAccess">
         <serviceType
               bundleId="org.eclipse.tcf.te.runtime.services"
               class="org.eclipse.tcf.te.runtime.services.interfaces.IPropertiesAccessService"/>
         <enablement>
            <or>
               <instanceof value="org.eclipse.tcf.protocol.IPeer"/>
               <instanceof value="org.eclipse.tcf.te.tcf.locator.interfaces.nodes.IPeerNode"/>
            </or>
         </enablement>
      </service>

      <service
            class="org.eclipse.tcf.te.tcf.locator.services.StepperOperationService"
            id="org.eclipse.tcf.te.tcf.locator.services.stepperOperation">
         <serviceType
               bundleId="org.eclipse.tcf.te.runtime.stepper"
               class="org.eclipse.tcf.te.runtime.stepper.interfaces.IStepperOperationService">
         </serviceType>
         <enablement>
            <or>
               <instanceof value="org.eclipse.tcf.te.tcf.locator.interfaces.nodes.IPeerNode"/>
               <instanceof value="org.eclipse.tcf.protocol.IPeer"/>
            </or>
            <test forcePluginActivation="true" property="org.eclipse.tcf.te.tcf.locator.isOfType" value="null"/>
         </enablement>
      </service>

      <service
            class="org.eclipse.tcf.te.tcf.locator.services.PeerNodeDelegateService"
            id="org.eclipse.tcf.te.tcf.locator.services.PeerNodeDelegate">
         <serviceType class="org.eclipse.tcf.te.runtime.services.interfaces.IDelegateService"/>
         <enablement>
            <instanceof value="org.eclipse.tcf.te.tcf.locator.interfaces.nodes.IPeerNode"/>
            <test forcePluginActivation="true" property="org.eclipse.tcf.te.tcf.locator.isOfType" value="null"/>
         </enablement>
      </service>
   </extension>

<!-- Step contributions -->
   <extension point="org.eclipse.tcf.te.runtime.stepper.steps">
      <step
            id="org.eclipse.tcf.te.tcf.locator.checkServiceStep"
            class="org.eclipse.tcf.te.tcf.locator.steps.CheckServiceStep"
            label="%CheckServiceStep.name">
         <requires id="org.eclipse.tcf.te.tcf.core.openChannelStep"/>
      </step>
      <step
            id="org.eclipse.tcf.te.tcf.locator.startSimulatorStep"
            class="org.eclipse.tcf.te.tcf.locator.steps.StartSimulatorStep"
            label="%StartSimulatorStep.name"/>
      <step
            id="org.eclipse.tcf.te.tcf.locator.stopSimulatorStep"
            class="org.eclipse.tcf.te.tcf.locator.steps.StopSimulatorStep"
            label="%StopSimulatorStep.name"/>
      <step
            id="org.eclipse.tcf.te.tcf.locator.startDebuggerStep"
            class="org.eclipse.tcf.te.tcf.locator.steps.StartDebuggerStep"
            label="%StartDebuggerStep.name"/>
      <step
            id="org.eclipse.tcf.te.tcf.locator.stopDebuggerStep"
            class="org.eclipse.tcf.te.tcf.locator.steps.StopDebuggerStep"
            label="%StopDebuggerStep.name"/>
      <step
            id="org.eclipse.tcf.te.tcf.locator.waitForReadyStep"
            class="org.eclipse.tcf.te.tcf.locator.steps.WaitForReadyStep"
            label="%WaitForReadyStep.name"/>
      <step
            id="org.eclipse.tcf.te.tcf.locator.startPingTimerStep"
            class="org.eclipse.tcf.te.tcf.locator.steps.StartPingTimerStep"
            label="%StartPingTimerStep.name"/>
   </extension>

<!-- Step group contributions -->
   <extension point="org.eclipse.tcf.te.runtime.stepper.stepGroups">
      <stepGroup
            id="org.eclipse.tcf.te.tcf.locator.connectStepGroup">
         <references>
            <reference id="org.eclipse.tcf.te.tcf.locator.connectNoAttachStepGroup"/>
            <reference id="org.eclipse.tcf.te.tcf.locator.startDebuggerStepGroup"/>
         </references>
      </stepGroup>

      <stepGroup
            id="org.eclipse.tcf.te.tcf.locator.connectNoAttachStepGroup">
         <references>
            <reference id="org.eclipse.tcf.te.core.setConnectStateStep">
            	<parameter name="state" value="connecting" />
            	<parameter name="stateOnCancel" value="disconnected" />
            	<parameter name="stateOnError" value="disconnected" />
            </reference>
            <reference id="org.eclipse.tcf.te.tcf.locator.startSimulatorStepGroup"/>
            <reference id="org.eclipse.tcf.te.tcf.locator.waitForReadyStepGroup"/>
            <reference id="org.eclipse.tcf.te.core.setConnectStateStep">
            	<parameter name="state" value="connected" />
            </reference>
            <reference id="org.eclipse.tcf.te.tcf.locator.startPingTimerStep"/>
         </references>
      </stepGroup>

      <stepGroup
            id="org.eclipse.tcf.te.tcf.locator.disconnectStepGroup">
         <references>
            <reference id="org.eclipse.tcf.te.core.setConnectStateStep">
            	<parameter name="state" value="disconnecting" />
            	<parameter name="stateOnError" value="disconnected" />
            </reference>
            <reference id="org.eclipse.tcf.te.runtime.stepper.cancelJobsStep"/>
            <reference id="org.eclipse.tcf.te.tcf.locator.stopDebuggerStep"/>
            <reference id="org.eclipse.tcf.te.tcf.core.shutDownStep"/>
            <reference id="org.eclipse.tcf.te.tcf.locator.stopSimulatorStep"/>
            <reference id="org.eclipse.tcf.te.core.setConnectStateStep">
            	<parameter name="state" value="disconnected" />
            </reference>
         </references>
      </stepGroup>
      
      <stepGroup
            id="org.eclipse.tcf.te.tcf.locator.connectionLostStepGroup">
         <references>
            <reference id="org.eclipse.tcf.te.core.setConnectStateStep">
            	<parameter name="state" value="connection_lost" />
            	<parameter name="stateOnError" value="disconnected" />
            </reference>
            <reference id="org.eclipse.tcf.te.runtime.stepper.cancelJobsStep"/>
            <reference id="org.eclipse.tcf.te.tcf.locator.stopDebuggerStep"/>
            <reference id="org.eclipse.tcf.te.tcf.core.shutDownStep"/>
            <reference id="org.eclipse.tcf.te.core.setConnectStateStep">
            	<parameter name="state" value="connection_lost" />
            </reference>
         </references>
      </stepGroup>
      
      <stepGroup
            id="org.eclipse.tcf.te.tcf.locator.connectionRecoveringStepGroup">
         <references>
            <reference id="org.eclipse.tcf.te.core.setConnectStateStep">
            	<parameter name="state" value="connection_recovering" />
            	<parameter name="stateOnCancel" value="disconnected" />
            	<parameter name="stateOnError" value="disconnected" />
            </reference>
            <reference id="org.eclipse.tcf.te.tcf.locator.waitForReadyStep">
            	<parameter name="noTimeout" value="true" />
            </reference>
            <reference id="org.eclipse.tcf.te.core.setConnectStateStep">
            	<parameter name="state" value="connected" />
            </reference>
            <reference id="org.eclipse.tcf.te.tcf.locator.startPingTimerStep"/>
         </references>
      </stepGroup>

      <stepGroup
            id="org.eclipse.tcf.te.tcf.locator.startSimulatorStepGroup"
            iterator="org.eclipse.tcf.te.tcf.locator.iterators.StartSimulatorIterator">
         <references>
            <reference id="org.eclipse.tcf.te.tcf.locator.startSimulatorStep"/>
         </references>
      </stepGroup>

      <stepGroup
            id="org.eclipse.tcf.te.tcf.locator.waitForReadyStepGroup">
         <references>
            <reference id="org.eclipse.tcf.te.tcf.locator.waitForReadyStep"/>
         </references>
      </stepGroup>

      <stepGroup
            id="org.eclipse.tcf.te.tcf.locator.startDebuggerStepGroup"
            iterator="org.eclipse.tcf.te.tcf.locator.iterators.StartDebuggerIterator">
         <references>
            <reference id="org.eclipse.tcf.te.tcf.locator.startDebuggerStep">
               <parameter name="autoAttachAll" value="true"/>
            </reference>
         </references>
      </stepGroup>
   </extension>

<!-- Reusable core expression fragments -->   
   <extension point="org.eclipse.core.expressions.definitions">
   
      <!-- Expression to test if current variable 
           is adaptable to IPeerNode and has a simulator service
      -->
      <definition id="te.expressions.peerModel.hasSimulatorService">
         <adapt type="org.eclipse.tcf.te.tcf.locator.interfaces.nodes.IPeerNode">
            <test property="org.eclipse.tcf.te.runtime.services.hasService" 
                  value="org.eclipse.tcf.te.runtime.services.interfaces.ISimulatorService"/>
            <test property="org.eclipse.tcf.te.tcf.locator.isAttribute"
                  args="SimulatorEnabled" value="true"/>
         </adapt>
      </definition>

      <!-- Expression to test if the active editor input 
           is adaptable to IPeerNode and has a simulator service
      -->
      <definition id="te.expressions.editor.hasSimulatorService">
         <with variable="activeEditorInput">
            <reference definitionId="te.expressions.peerModel.hasSimulatorService"/>
         </with>
      </definition>

      <!-- Expression to test if the selection 
           is adaptable to IPeerNode and has a simulator service
      -->
      <definition id="te.expressions.selection.hasSimulatorService">
         <with variable="selection">
            <count value="1"/>
            <iterate operator="and" ifEmpty="false">
               <reference definitionId="te.expressions.peerModel.hasSimulatorService"/>
            </iterate>
         </with>
      </definition>

      <!-- Expression to test if current variable 
           is adaptable to IPeerNode and has remote or offline run control
      -->
      <definition id="te.expressions.peerModel.hasRunControl">
         <adapt type="org.eclipse.tcf.te.tcf.locator.interfaces.nodes.IPeerNode">
            <or>
               <test property="org.eclipse.tcf.te.tcf.locator.hasRemoteService" value="RunControl"/>
               <test property="org.eclipse.tcf.te.tcf.locator.hasOfflineService" value="RunControl"/>
            </or>
         </adapt>
      </definition>

      <!-- Expression to test if the active editor input 
           is adaptable to IPeerNode and has remote or offline run control
      -->
      <definition id="te.expressions.editor.hasRunControl">
         <with variable="activeEditorInput">
            <reference definitionId="te.expressions.peerModel.hasSimulatorService"/>
         </with>
      </definition>

      <!-- Expression to test if the selection 
           is adaptable to IPeerNode and has remote or offline run control
      -->
      <definition id="te.expressions.selection.hasRunControl">
         <with variable="selection">
            <count value="1"/>
            <iterate operator="and" ifEmpty="false">
               <reference definitionId="te.expressions.peerModel.hasSimulatorService"/>
            </iterate>
         </with>
      </definition>

   </extension>

</plugin>

Back to the top