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

<!--
 Copyright (c) 2012, 2013 Obeo.
 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
-->

<plugin>
   <extension-point id="modelResolvers" name="Model Resolvers" schema="schema/modelResolvers.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="EMFCompare 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"
            id="org.eclipse.emf.compare.ide.ui.internal.EObjectContentMergeViewer"
            label="EMFCompare Content Merge Viewer">
      </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="EMFCompare Content Merge Viewer">
      </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="EMFCompare Text Merge Viewer">
      </viewer>
      <contentTypeBinding
            contentTypeId="org.eclipse.emf.ecore.xmi"
            contentMergeViewerId="org.eclipse.emf.compare.ide.ui.internal.EObjectContentMergeViewer">
      </contentTypeBinding>
      <contentTypeBinding
            contentTypeId="org.eclipse.emf.compare.content.type"
            contentMergeViewerId="org.eclipse.emf.compare.ide.ui.internal.EObjectContentMergeViewer">
      </contentTypeBinding>
   </extension>
   <extension
         point="org.eclipse.emf.edit.itemProviderAdapterFactories">
      <factory
            class="org.eclipse.emf.compare.ide.ui.internal.structuremergeviewer.provider.CompareNodeAdapterFactory"
            supportedTypes="org.eclipse.compare.structuremergeviewer.ICompareInput"
            uri="http://www.eclipse.org/emf/compare">
      </factory>
   </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="Each Other &lt;EObject&gt; (in Dialog)"
               style="push">
            <visibleWhen
                  checkEnabled="true">
            </visibleWhen>
         </command>
         <command
               commandId="org.eclipse.emf.compare.ide.ui.compareInEditor"
               label="Each Other &lt;EObject&gt; (in Editor)"
               style="push">
            <visibleWhen
                  checkEnabled="true">
            </visibleWhen>
         </command>
      </menuContribution>
      <menuContribution
            allPopups="false"
            locationURI="popup:org.eclipse.ui.popup.any">
         <menu
               id="compareWithMenu"
               label="Compare With">
            <separator
                  name="compareWithGroup">
            </separator>
         </menu>
      </menuContribution>
      <menuContribution
            allPopups="false"
            locationURI="toolbar:org.eclipse.emf.compare.structuremergeviewer.toolbar">
         <command
               commandId="org.eclipse.emf.compare.ide.ui.saveComparisonModel"
               icon="icons/full/toolb16/saveas_edit.gif"
               label="%save.model.name"
               style="push"
               tooltip="%save.model.tooltip">
         </command>
      </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>
      <command
            id="org.eclipse.emf.compare.ide.ui.saveComparisonModel"
            name="%save.model.command.name">
      </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>
      <handler
            class="org.eclipse.emf.compare.ide.ui.internal.structuremergeviewer.handler.SaveComparisonModel"
            commandId="org.eclipse.emf.compare.ide.ui.saveComparisonModel">
         <enabledWhen>
            <with
                  variable="activeEditor">
               <test
                     property="emfcompare.isSaveable">
               </test>
            </with>
         
         </enabledWhen>
      </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>
            </or>
         </and>
      </enablement>
   </extension>
   <extension
         point="org.eclipse.core.expressions.propertyTesters">
      <propertyTester
            class="org.eclipse.emf.compare.ide.ui.internal.structuremergeviewer.handler.ModelSaveablePropertyTester"
            id="org.eclipse.emf.compare.ide.ui.modelSaveable"
            namespace="emfcompare"
            properties="isSaveable"
            type="java.lang.Object">
      </propertyTester>
   </extension>
   <extension
         point="org.eclipse.emf.compare.ide.ui.modelResolvers">
      <resolver
            class="org.eclipse.emf.compare.ide.ui.internal.logical.LogicalModelResolver"
            ranking="0">
      </resolver>
      <resolver
            class="org.eclipse.emf.compare.ide.ui.internal.logical.ProjectModelResolver"
            ranking="1">
      </resolver>
   </extension>
</plugin>

Back to the top