| <?xml version='1.0' encoding='UTF-8'?> |
| <!-- Schema file written by PDE --> |
| <schema targetNamespace="org.eclipse.gmf.runtime.emf.clipboard.core"> |
| <annotation> |
| <appInfo> |
| <meta.schema plugin="org.eclipse.gmf.runtime.emf.clipboard.core" id="clipboardSupport" name="Clipboard Support"/> |
| </appInfo> |
| <documentation> |
| Providers of EMF meta-models can implement extensions on this point |
| to provide support for copying EMF objects to and pasting them from |
| the system clipboard. The clipboard support allows extensions to |
| implement fairly complex metamodel-specific semantics for copy/paste |
| operations, where some relationships between model elements need |
| special treatment. |
| </documentation> |
| </annotation> |
| |
| <element name="extension"> |
| <complexType> |
| <sequence> |
| <element ref="factory" minOccurs="1" maxOccurs="unbounded"/> |
| </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> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="factory"> |
| <annotation> |
| <appInfo> |
| <meta.element labelAttribute="nsURI"/> |
| </appInfo> |
| <documentation> |
| Registers an implementation of the |
| <code>IClipboardSupportFactory</code> interface that can create |
| objects that provide metamodel-specific copy/paste semantics for |
| EMF objects. |
| </documentation> |
| </annotation> |
| <complexType> |
| <attribute name="nsURI" type="string" use="required"> |
| <annotation> |
| <documentation> |
| Namespace URI identifying the EPackage for which the extension |
| provides an <code>IClipboardSupportFactory</code> implementation. |
| The EPackage represents an EMF metamodel. |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="class" type="string" use="required"> |
| <annotation> |
| <documentation> |
| Fully-qualified name of a class implementing the |
| <code>IClipboardSupportFactory</code> interface. This class will |
| only be loaded and instantiated when needed to copy an EMF object |
| to the clipboard or when pasting from the clipboard. |
| </documentation> |
| <appInfo> |
| <meta.attribute kind="java" basedOn="org.eclipse.gmf.runtime.emf.clipboard.core.IClipboardSupportFactory"/> |
| </appInfo> |
| </annotation> |
| </attribute> |
| <attribute name="priority" use="default" value="medium"> |
| <annotation> |
| <documentation> |
| Indicates the priority relative to other factories registered for |
| the same metamodel. The default is medium. |
| |
| This attribute is <b>deprecated</b>; a new context-based approach |
| will be devised soon. |
| </documentation> |
| </annotation> |
| <simpleType> |
| <restriction base="string"> |
| <enumeration value="lowest"> |
| </enumeration> |
| <enumeration value="low"> |
| </enumeration> |
| <enumeration value="medium"> |
| </enumeration> |
| <enumeration value="high"> |
| </enumeration> |
| <enumeration value="highest"> |
| </enumeration> |
| </restriction> |
| </simpleType> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="since"/> |
| </appInfo> |
| <documentation> |
| 7.0 |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="examples"/> |
| </appInfo> |
| <documentation> |
| To register a clipboard support factory for the EMF Library example |
| model: |
| <pre> |
| <extension |
| point="org.eclipse.gmf.runtime.emf.clipboard.core.clipboardSupport"> |
| <factory |
| nsURI="http:///org/eclipse/emf/examples/library.ecore" |
| class="com.example.emf.library.clipboard.LibraryClipboardSupportFactory"> |
| </factory> |
| </extension> |
| </pre> |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="apiInfo"/> |
| </appInfo> |
| <documentation> |
| Classes registered on this extension point must implement the |
| <code>org.eclipse.gmf.runtime.emf.clipboard.core.IClipboardSupportFactory</code> |
| interface. A support factory is responsible for creating |
| <code>IClipboardSupport</code>s for the packages on which it is |
| registered on this extension point. |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="implementation"/> |
| </appInfo> |
| <documentation> |
| |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="copyright"/> |
| </appInfo> |
| <documentation> |
| Copyright (c) 2005 IBM Corporation and others.<br> |
| 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 |
| <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a> |
| |
| </documentation> |
| </annotation> |
| |
| </schema> |