Skip to main content
summaryrefslogtreecommitdiffstats
blob: 1b56feaae9d191d2c25af86b0bb3ab4ed4988c74 (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
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>

<!--
 Copyright (c) 2012, 2016 Obeo 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:
     Obeo - initial API and implementation
     Stefan Dirix - bugs 456699, 474723
     Michael Borkowski - bug 467191
-->

<plugin>
   <extension-point id="modelResolvers" name="Model Resolvers" schema="schema/modelResolvers.exsd"/>
   <extension-point id="logicalModelViewHandlers" name="Logical Model View Handlers" schema="schema/logicalModelViewHandlers.exsd"/>
   <extension-point id="modelDependencyProvider" name="Model Dependency Provider" schema="schema/modelDependencyProvider.exsd"/>
   <extension-point id="mergeResolutionListener" name="Merge Resolution Listener" schema="schema/mergeResolutionListener.exsd"/>
   
   <extension
         point="org.eclipse.compare.structureMergeViewers">
      <viewer
            class="org.eclipse.emf.compare.ide.ui.internal.structuremergeviewer.EMFCompareStructureMergeViewerCreator"
            extensions="NODE_TYPE__EMF_EOBJECT,NODE_TYPE__EMF_RESOURCE,NODE_TYPE__EMF_RESOURCESET,NODE_TYPE__EMF_COMPARISON"
            id="org.eclipse.emf.compare.ide.ui.internal.structureMergeViewer"
            label="%emf.compare.structure.merge.viewer">
      </viewer>
      <contentTypeBinding
            contentTypeId="org.eclipse.emf.ecore.xmi"
            structureMergeViewerId="org.eclipse.emf.compare.ide.ui.internal.structureMergeViewer">
      </contentTypeBinding>
      <contentTypeBinding
            contentTypeId="org.eclipse.emf.compare.content.type"
            structureMergeViewerId="org.eclipse.emf.compare.ide.ui.internal.structureMergeViewer">
      </contentTypeBinding>
   </extension>
   <extension
         point="org.eclipse.compare.contentMergeViewers">
      <viewer
            class="org.eclipse.emf.compare.ide.ui.internal.contentmergeviewer.tree.TreeContentMergeViewerCreator"
            extensions=
            "org.eclipse.emf.compare.rcp.ui.eTreeDiff,
            org.eclipse.emf.compare.rcp.ui.eMatch,
            org.eclipse.emf.compare.rcp.ui.eResourceDiff,
            NODE_TYPE__EMF_EOBJECT,
            NODE_TYPE__EMF_RESOURCE,
            NODE_TYPE__EMF_RESOURCESET,
            NODE_TYPE__EMF_COMPARISON"
            id="org.eclipse.emf.compare.ide.ui.internal.EObjectContentMergeViewer"
            label="%model.compare.containment.feature">
      </viewer>
      <viewer
            class="org.eclipse.emf.compare.ide.ui.internal.contentmergeviewer.table.TableContentMergeViewerCreator"
            extensions="org.eclipse.emf.compare.rcp.ui.eListDiff"
            id="org.eclipse.emf.compare.ide.ui.internal.contentmergeviewer.EObjectListContentMergeViewer"
            label="%model.compare.non.containment.feature">
      </viewer>
      <viewer
            class="org.eclipse.emf.compare.ide.ui.internal.contentmergeviewer.text.EMFCompareTextMergeViewerCreator"
            extensions="org.eclipse.emf.compare.rcp.ui.eTextDiff"
            id="org.eclipse.emf.compare.ide.ui.internal.contentmergeviewer.text.EMFCompareTextContentMergeViewer"
            label="%model.compare.text.feature">
      </viewer>
      <viewer
            class="org.eclipse.emf.compare.ide.ui.internal.contentmergeviewer.label.LabeledViewerCreator"
            extensions="org.eclipse.emf.compare.rcp.ui.eWait"
            id="org.eclipse.emf.compare.ide.ui.internal.contentmergeviewer.WaitViewer"
            label="%emf.compare.wait.viewer">
      </viewer>
      <viewer
            class="org.eclipse.emf.compare.ide.ui.internal.contentmergeviewer.label.NoDifferencesViewerCreator"
            extensions="org.eclipse.emf.compare.rcp.ui.eNoDiff"
            id="org.eclipse.emf.compare.ide.ui.internal.contentmergeviewer.NoDifferencesViewer"
            label="%emf.compare.no.differences.viewer">
      </viewer>
      <viewer
            class="org.eclipse.emf.compare.ide.ui.internal.contentmergeviewer.label.NoVisibleItemViewerCreator"
            extensions="org.eclipse.emf.compare.rcp.ui.eNoVisibleItem"
            id="org.eclipse.emf.compare.ide.ui.internal.contentmergeviewer.NoVisibleItemViewer"
            label="%emf.compare.no.visible.item.viewer">
      </viewer>
      <viewer
            class="org.eclipse.emf.compare.ide.ui.internal.contentmergeviewer.label.OnlyPseudoConflictsViewerCreator"
            extensions="org.eclipse.emf.compare.rcp.ui.eOnlyPseudoConflicts"
            id="org.eclipse.emf.compare.ide.ui.internal.contentmergeviewer.OnlyPseudoConflictsViewer"
            label="%emf.compare.only.pseudo.conflicts.viewer">
      </viewer>
      <viewer
            class="org.eclipse.emf.compare.ide.ui.internal.contentmergeviewer.TextFallbackCompareViewerCreator"
            extensions=
            "org.eclipse.emf.compare.rcp.ui.fallbackText,
            org.eclipse.emf.compare.rcp.ui.eTreeDiff,
            org.eclipse.emf.compare.rcp.ui.eMatch,
            org.eclipse.emf.compare.rcp.ui.eResourceDiff,
            org.eclipse.emf.compare.rcp.ui.eListDiff,
            org.eclipse.emf.compare.rcp.ui.eTextDiff,
            org.eclipse.emf.compare.rcp.ui.eNoDiff,
            org.eclipse.emf.compare.rcp.ui.eNoVisibleItem,
            org.eclipse.emf.compare.rcp.ui.eOnlyPseudoConflicts"
            id="org.eclipse.emf.compare.ide.ui.internal.contentmergeviewer.TextFallbackCompareViewer"
            label="%emf.compare.fallback.textcompare">
      </viewer>
      <contentTypeBinding
            contentTypeId="org.eclipse.emf.ecore.xmi"
            contentMergeViewerId="org.eclipse.emf.compare.ide.ui.internal.contentmergeviewer.WaitViewer">
      </contentTypeBinding>
      <contentTypeBinding
            contentTypeId="org.eclipse.emf.compare.content.type"
            contentMergeViewerId="org.eclipse.emf.compare.ide.ui.internal.contentmergeviewer.WaitViewer">
      </contentTypeBinding>
   </extension>
   <extension
         point="org.eclipse.emf.edit.itemProviderAdapterFactories">
      <factory
            class="org.eclipse.emf.compare.ide.ui.internal.structuremergeviewer.provider.TreeCompareInputAdapterFactory"
            supportedTypes="org.eclipse.compare.structuremergeviewer.ICompareInput"
            uri="http://www.eclipse.org/emf/2002/Tree">
      </factory>
   </extension>
   <extension
         point="org.eclipse.ui.views">
      <category
            id="org.eclipse.emf.compare.category"
            name="EMF Compare">
      </category>
      <view
            allowMultiple="false"
            category="org.eclipse.emf.compare.category"
            class="org.eclipse.emf.compare.ide.ui.internal.logical.view.LogicalModelView"
            icon="icons/full/eobj16/emfcompare-icon.gif"
            id="org.eclipse.emf.compare.ide.ui.logicalmodel.view"
            name="Logical Model View"
            restorable="true">
      </view>
   </extension>
   <extension
         point="org.eclipse.ui.navigator.viewer">
      <viewer
            viewerId="org.eclipse.emf.compare.ide.ui.logicalmodel.view">
         <popupMenu
               allowsPlatformContributions="true"
               id="org.eclipse.emf.compare.ide.ui.logicalmodel.view#PopupMenu">
            <insertionPoint
                  name="group.open"
                  separator="true">
            </insertionPoint>
            <insertionPoint
                  name="group.openWith">
            </insertionPoint>
            <insertionPoint
                  name="group.show"
                  separator="true">
            </insertionPoint>
            <insertionPoint
                  name="additions"
                  separator="true">
            </insertionPoint>
            <insertionPoint
                  name="group.properties"
                  separator="true">
            </insertionPoint>
         </popupMenu>
         <options>
            <property
                  name="org.eclipse.ui.navigator.hideLinkWithEditorAction"
                  value="true">
            </property>
            <property
                  name="org.eclipse.ui.navigator.hideCollapseAllAction"
                  value="true">
            </property>
            <property
                  name="org.eclipse.ui.navigator.customizeViewDialogHelpContext"
                  value="false">
            </property>
         </options>
      </viewer>
      <viewerActionBinding
            viewerId="org.eclipse.emf.compare.ide.ui.logicalmodel.view">
         <includes>
            <actionExtension
                  pattern="org.eclipse.ui.navigator.resources.OpenActions">
            </actionExtension>
            <actionExtension
                  pattern="org.eclipse.ui.navigator.resources.PropertiesActionProvider">
            </actionExtension>
         </includes>
         <excludes>
            <actionExtension
                  pattern="org.eclipse.ui.navigator.resources.GotoActions">
            </actionExtension>
            <actionExtension
                  pattern="org.eclipse.ui.navigator.resources.PortingActions">
            </actionExtension>
            <actionExtension
                  pattern="org.eclipse.ui.navigator.resources.NewActions">
            </actionExtension>
            <actionExtension
                  pattern="org.eclipse.ui.navigator.resources.WorkManagementActionProvider">
            </actionExtension>
            <actionExtension
                  pattern="org.eclipse.ui.navigator.resources.ResourceMgmtActions">
            </actionExtension>
            <actionExtension
                  pattern="org.eclipse.ui.navigator.resources.UndoRedoActionProvider">
            </actionExtension>
            <actionExtension
                  pattern="org.eclipse.ui.navigator.resources.WorkingSetActions">
            </actionExtension></excludes>
      </viewerActionBinding>
      <viewerContentBinding
            viewerId="org.eclipse.emf.compare.ide.ui.logicalmodel.view">
         <includes>
            <contentExtension
                  pattern="org.eclipse.ui.navigator.resourceContent">
            </contentExtension>
         </includes>
      </viewerContentBinding>
   </extension>
      <extension
         point="org.eclipse.ui.menus">
      <menuContribution
            allPopups="true"
            locationURI="popup:compareWithMenu?after=compareWithGroup">
         <command
               commandId="org.eclipse.emf.compare.ide.ui.compareInDialog"
               label="%command.each.other.in.dialog"
               style="push">
            <visibleWhen
                  checkEnabled="true">
            </visibleWhen>
         </command>
         <command
               commandId="org.eclipse.emf.compare.ide.ui.compareInEditor"
               label="%command.each.other.in.editor"
               style="push">
            <visibleWhen
                  checkEnabled="true">
            </visibleWhen>
         </command>
      </menuContribution>
      <menuContribution
            allPopups="false"
            locationURI="popup:org.eclipse.ui.popup.any?after=additions">
         <menu
               id="compareWithMenu"
               label="%compare.with.label">
            <separator
                  name="compareWithGroup">
            </separator>
         </menu>
      </menuContribution>
      <menuContribution
            allPopups="false"
            locationURI="toolbar:org.eclipse.emf.compare.structuremergeviewer.toolbar">
      </menuContribution>
   </extension>
   <extension
         point="org.eclipse.ui.commands">
      <command
            categoryId="org.eclipse.compare.ui.category.compare"
            id="org.eclipse.emf.compare.ide.ui.compareInDialog"
            name="Compare in Dialog">
      </command>
      <command
            categoryId="org.eclipse.compare.ui.category.compare"
            id="org.eclipse.emf.compare.ide.ui.compareInEditor"
            name="Compare in new Editor">
      </command>
      <command
            id="org.eclipse.team.ui.compareWithEachOther"
            name="Each Other">
      </command>
   </extension>
   <extension
         point="org.eclipse.ui.handlers">
      <handler
            class="org.eclipse.emf.compare.ide.ui.internal.handler.CompareInDialog"
            commandId="org.eclipse.emf.compare.ide.ui.compareInDialog">
         <activeWhen>
            <with
                  variable="selection">
               <and>
                  <iterate
                        ifEmpty="false"
                        operator="and">
                     <instanceof
                           value="org.eclipse.emf.ecore.EObject">
                     </instanceof>
                  </iterate>
                  <or>
                     <count
                           value="2">
                     </count>
                     <count
                           value="3">
                     </count>
                  </or>
               </and>
            </with>
         </activeWhen>
      </handler>
      <handler
            class="org.eclipse.emf.compare.ide.ui.internal.handler.CompareInNewEditor"
            commandId="org.eclipse.emf.compare.ide.ui.compareInEditor">
         <activeWhen>
            <with
                  variable="selection">
               <and>
                  <iterate
                        ifEmpty="false"
                        operator="and">
                     <instanceof
                           value="org.eclipse.emf.ecore.EObject">
                     </instanceof>
                  </iterate>
                  <or>
                     <count
                           value="2">
                     </count>
                     <count
                           value="3">
                     </count>
                  </or>
               </and>
            </with>
         </activeWhen>
      </handler>
      <handler
            class="org.eclipse.emf.compare.ide.ui.internal.handler.CompareInDialog"
            commandId="org.eclipse.team.ui.compareWithEachOther">
         <activeWhen>
            <with
                  variable="selection">
               <and>
                  <iterate
                        ifEmpty="false"
                        operator="and">
                     <instanceof
                           value="org.eclipse.emf.ecore.EObject">
                     </instanceof>
                  </iterate>
                  <or>
                     <count
                           value="2">
                     </count>
                     <count
                           value="3">
                     </count>
                  </or>
               </and>
            </with>
         </activeWhen>
      </handler>
   </extension>
   <extension
         id="org.eclipse.emf.compare.model.provider"
         name="EMF Compare"
         point="org.eclipse.core.resources.modelProviders">
      <modelProvider
            class="org.eclipse.emf.compare.ide.ui.internal.logical.EMFModelProvider">
      </modelProvider>
      <enablement>
         <and>
            <adapt
                  type="org.eclipse.core.resources.IFile">
            </adapt>
            <or>
               <test
                     args="kindOf"
                     property="org.eclipse.core.resources.contentTypeId"
                     value="org.eclipse.emf.ecore">
               </test>
               <test
                     args="kindOf"
                     property="org.eclipse.core.resources.contentTypeId"
                     value="org.eclipse.emf.ecore.xmi">
               </test>
               <test
                     args="kindOf"
                     property="org.eclipse.core.resources.contentTypeId"
                     value="org.eclipse.emf.compare.content.type">
               </test>
               <test
                     property="org.eclipse.core.resources.extension"
                     value="ecore">
               </test>
               <test
                     property="org.eclipse.core.resources.extension"
                     value="notation">
               </test>
               <test
                     property="org.eclipse.core.resources.extension"
                     value="uml">
               </test>
               <test
                     property="org.eclipse.core.resources.extension"
                     value="di">
               </test>
               <test
                     property="org.eclipse.core.resources.extension"
                     value="sash">
               </test>
               <test
                     property="org.eclipse.core.resources.extension"
                     value="xmi">
               </test>
            </or>
         </and>
      </enablement>
      <extends-model
            id="org.eclipse.core.resources.modelProvider">
      </extends-model>
   </extension>
   <extension
         point="org.eclipse.emf.compare.ide.ui.modelResolvers">
      <resolver
            class="org.eclipse.emf.compare.ide.ui.internal.logical.resolver.ThreadedModelResolver"
            description="%resolver.threadedModelResolver.description"
            label="%resolver.threadedModelResolver.label"
            ranking = "0">
      </resolver>
   </extension>
   <extension
         point="org.eclipse.ui.preferencePages">
      <page
            category="org.eclipse.emf.compare.rcp.ui.preferencePage.global"
            class="org.eclipse.emf.compare.ide.ui.internal.preferences.ModelResolutionPreferencePage"
            id="org.eclipse.emf.compare.ide.ui.preferencepage.resolvers"
            name="Resolution strategy">
      </page>
      <page
            category="org.eclipse.emf.compare.rcp.ui.preferencePage.global"
            class="org.eclipse.emf.compare.ide.ui.internal.preferences.MergePreferencesPage"
            id="org.eclipse.emf.compare.ide.ui.preferencepage.merge"
            name="Merge">
      </page>
   </extension>
   <extension
         point="org.eclipse.core.runtime.preferences">
      <initializer
            class="org.eclipse.emf.compare.ide.ui.internal.preferences.EMFCompareUIPreferencesInitializer">
      </initializer>
   </extension>
   <extension
         point="org.eclipse.core.runtime.adapters">
      <factory
            adaptableType="org.eclipse.emf.compare.ide.ui.internal.logical.EMFModelProvider"
            class="org.eclipse.emf.compare.ide.ui.internal.logical.EMFLogicalModelAdapterFactory">
         <adapter
               type="org.eclipse.team.core.mapping.IResourceMappingMerger">
         </adapter>
         <adapter
               type="org.eclipse.team.ui.mapping.ISynchronizationCompareAdapter">
         </adapter>
      </factory>
   </extension>
   <extension
         point="org.eclipse.emf.compare.ide.ui.logicalModelViewHandlers">
      <handler
            class="org.eclipse.emf.compare.ide.ui.internal.logical.view.EMFCompareEditorLMVHandler"
            ranking="20">
      </handler>
      <handler
            class="org.eclipse.emf.compare.ide.ui.internal.logical.view.EMFReflectiveEditorLMVHandler"
            ranking="10">
      </handler>
      <handler
            class="org.eclipse.emf.compare.ide.ui.internal.logical.view.ExplorersViewSelectionLMVHandler"
            ranking="10">
      </handler>
   </extension>
    <extension
         point="org.eclipse.ui.menus">
      <menuContribution
            allPopups="false"
            locationURI="popup:compareWithMenu?after=compareWithGroup">
         <command
               commandId="org.eclipse.emf.compare.ide.ui.emfComparisonSourceCompareCommand"
               label="%command.each.other.emfComparisonSource"
               style="push">
            <visibleWhen
                  checkEnabled="false">
               <with
                     variable="activeMenuSelection">
                  <iterate
                        ifEmpty="false">
                     <and>
                        <adapt
                              type="org.eclipse.emf.compare.ide.ui.source.IEMFComparisonSource">
                        </adapt>
                        <not>
                           <adapt
                                 type="org.eclipse.core.resources.IResource">
                           </adapt>
                        </not>
                     </and>
                  </iterate>
               </with>
            </visibleWhen>
         </command>
      </menuContribution>
   </extension>
   <extension
         point="org.eclipse.ui.commands">
      <command
            id="org.eclipse.emf.compare.ide.ui.emfComparisonSourceCompareCommand"
            name="Compare EMFComparisonSource">
      </command>
   </extension>
   <extension
         point="org.eclipse.ui.handlers">
      <handler
            class="org.eclipse.emf.compare.ide.ui.internal.handler.EMFComparisonSourceActionHandler"
            commandId="org.eclipse.emf.compare.ide.ui.emfComparisonSourceCompareCommand">
         <activeWhen>
            <with
                  variable="activeMenuSelection">
               <or>
                  <count
                        value="2">
                  </count>
                  <count
                        value="3">
                  </count>
               </or>
            </with>
         </activeWhen>
      </handler>
   </extension>
</plugin>

Back to the top