| <?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,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 Features)"> |
| </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> |
| <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.TreeCompareInputAdapterFactory" |
| supportedTypes="org.eclipse.compare.structuremergeviewer.ICompareInput" |
| uri="http://www.eclipse.org/emf/2002/Tree"> |
| </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 <EObject> (in Dialog)" |
| style="push"> |
| <visibleWhen |
| checkEnabled="true"> |
| </visibleWhen> |
| </command> |
| <command |
| commandId="org.eclipse.emf.compare.ide.ui.compareInEditor" |
| label="Each Other <EObject> (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"> |
| </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> |
| </or> |
| </and> |
| </enablement> |
| </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> |