| <?xml version='1.0' encoding='UTF-8'?> | |
| <!-- Schema file written by PDE --> | |
| <schema targetNamespace="org.eclipse.emf.compare.ide" xmlns="http://www.w3.org/2001/XMLSchema"> | |
| <annotation> | |
| <appinfo> | |
| <meta.schema plugin="org.eclipse.emf.compare.ide" id="org.eclipse.emf.compare.modelResolver" name="Model Resolver"/> | |
| </appinfo> | |
| <documentation> | |
| This extension point can be used in order to tell EMF Compare how to resolve the resource set of a given IResource. | |
| Take note that EMF Compare will use the very first model resolver that can be applied to a given IResource and discard subsequent ones. | |
| </documentation> | |
| </annotation> | |
| <element name="extension"> | |
| <annotation> | |
| <appinfo> | |
| <meta.element /> | |
| </appinfo> | |
| </annotation> | |
| <complexType> | |
| <sequence minOccurs="1" maxOccurs="unbounded"> | |
| <element ref="modelResolver"/> | |
| </sequence> | |
| <attribute name="point" type="string" use="required"> | |
| <annotation> | |
| <documentation> | |
| </documentation> | |
| </annotation> | |
| </attribute> | |
| <attribute name="id" type="string"> | |
| <annotation> | |
| <documentation> | |
| </documentation> | |
| </annotation> | |
| </attribute> | |
| <attribute name="name" type="string"> | |
| <annotation> | |
| <documentation> | |
| </documentation> | |
| <appinfo> | |
| <meta.attribute translatable="true"/> | |
| </appinfo> | |
| </annotation> | |
| </attribute> | |
| </complexType> | |
| </element> | |
| <element name="modelResolver"> | |
| <annotation> | |
| <documentation> | |
| Describes a Model Resolver and its enablement value. | |
| </documentation> | |
| </annotation> | |
| <complexType> | |
| <choice> | |
| <element ref="fileExtension"/> | |
| <element ref="namespace"/> | |
| </choice> | |
| <attribute name="class" type="string" use="required"> | |
| <annotation> | |
| <documentation> | |
| Fully qualified name of a class that implements org.eclipse.emf.compare.ide.logical.extension.IModelResolver. | |
| </documentation> | |
| <appinfo> | |
| <meta.attribute kind="java" basedOn=":org.eclipse.emf.compare.ide.logical.extension.IModelResolver"/> | |
| </appinfo> | |
| </annotation> | |
| </attribute> | |
| </complexType> | |
| </element> | |
| <element name="fileExtension"> | |
| <annotation> | |
| <documentation> | |
| Extension of the files that this model resolver consider as part of the models it can resolve. Can be multiple file extensions separated with commas. | |
| Note : "*" is accepted as a wildcard for all extensions ... but should not be used as it would prevent any other model resolver to be provided to the framework. | |
| Example : <fileExtension value="uml, ecore"/> | |
| </documentation> | |
| </annotation> | |
| <complexType> | |
| <attribute name="value" type="string" use="required"> | |
| <annotation> | |
| <documentation> | |
| </documentation> | |
| </annotation> | |
| </attribute> | |
| </complexType> | |
| </element> | |
| <element name="namespace"> | |
| <annotation> | |
| <documentation> | |
| Namespace of the packages that this model resolver consider as part of the models it can resolve. These correspond to the package NsURI. More than a single NsURI can be set here, comma-separated. They will be interpreted as regular expressions. | |
| Example : <namespace value="http://www.eclipse.org/uml2/(.*)/UML"/> | |
| </documentation> | |
| </annotation> | |
| <complexType> | |
| <attribute name="value" type="string" use="required"> | |
| <annotation> | |
| <documentation> | |
| </documentation> | |
| </annotation> | |
| </attribute> | |
| </complexType> | |
| </element> | |
| <annotation> | |
| <appinfo> | |
| <meta.section type="since"/> | |
| </appinfo> | |
| <documentation> | |
| 1.2 | |
| </documentation> | |
| </annotation> | |
| <annotation> | |
| <appinfo> | |
| <meta.section type="examples"/> | |
| </appinfo> | |
| <documentation> | |
| This is an example that can be used "out of the box" to use the modelResolver extension point with a resolver that will look in the parent of the selected file for other EMF resources that would reference it. | |
| <extension point = "org.eclipse.emf.compare.modelResolver"> | |
| <modelResolver class="org.eclipse.emf.compare.ide.logical.extension.ScopedModelResolver"> | |
| <fileExtension value="uml"/> | |
| </modelResolver> | |
| </extension> | |
| </documentation> | |
| </annotation> | |
| <annotation> | |
| <appinfo> | |
| <meta.section type="implementation"/> | |
| </appinfo> | |
| <documentation> | |
| See org.eclipse.emf.compare.ide.logical.extension.ScopedModelResolver | |
| </documentation> | |
| </annotation> | |
| <annotation> | |
| <appinfo> | |
| <meta.section type="copyright"/> | |
| </appinfo> | |
| <documentation> | |
| Copyright (c) 2011, 2012 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 | |
| </documentation> | |
| </annotation> | |
| </schema> |