| <?xml version='1.0' encoding='UTF-8'?> |
| <!-- Schema file written by PDE --> |
| <schema targetNamespace="org.eclipse.gmf.runtime.common.ui.services.dnd"> |
| <annotation> |
| <appInfo> |
| <meta.schema plugin="org.eclipse.gmf.runtime.common.ui.services.dnd" id="transferAdapterProviders" name="Transfer Adapter Providers Extension Point"/> |
| </appInfo> |
| <documentation> |
| This extension point is used to register transfer adapters for drag and drop operations. This extension point facilitates |
| the configuration of providers for the transfer adapter service (<tt>org.eclipse.gmf.runtime.common.ui.services.dnd.core.TransferAdapterService</tt>). |
| The providers register adapters for drag and drop operations on specific transfer ids. |
| </documentation> |
| </annotation> |
| |
| <element name="extension"> |
| <complexType> |
| <sequence> |
| <element ref="TransferAdapterProvider"/> |
| </sequence> |
| <attribute name="point" type="string" use="required"> |
| <annotation> |
| <documentation> |
| The identifier of the extension point, i.e. <tt>org.eclipse.gmf.runtime.common.ui.services.dnd.transferAdapterProviders</tt> |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="id" type="string"> |
| <annotation> |
| <documentation> |
| The identifier of the extension, e.g. transferAdapterProviders. |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="name" type="string"> |
| <annotation> |
| <documentation> |
| The name of the extension, e.g. %ext.transferAdapterProviders. |
| </documentation> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="TransferAdapterProvider"> |
| <complexType> |
| <sequence> |
| <element ref="Priority"/> |
| <element ref="AdapterType" minOccurs="1" maxOccurs="2"/> |
| </sequence> |
| <attribute name="id" type="string" use="required"> |
| <annotation> |
| <documentation> |
| The identifier of the provider, e.g. my_transferAdapterProvider. |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="class" type="string" use="required"> |
| <annotation> |
| <documentation> |
| The provider class. Providers implement service functionality (operations). |
| </documentation> |
| <appInfo> |
| <meta.attribute kind="java" basedOn="org.eclipse.gmf.runtime.common.ui.services.dnd.core.AbstractTransferAdapterProvider"/> |
| </appInfo> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="Priority"> |
| <complexType> |
| <attribute name="name" use="required"> |
| <annotation> |
| <documentation> |
| The name of the provider priority, i.e. Lowest, Low, Medium, High, or Highest. |
| </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> |
| |
| <element name="AdapterType"> |
| <complexType> |
| <sequence> |
| <element ref="TransferId" minOccurs="1" maxOccurs="unbounded"/> |
| </sequence> |
| <attribute name="operation" use="required"> |
| <annotation> |
| <documentation> |
| The adapter type being registered, e.g. <tt>drag or drop</tt> |
| </documentation> |
| </annotation> |
| <simpleType> |
| <restriction base="string"> |
| <enumeration value="drag"> |
| </enumeration> |
| <enumeration value="drop"> |
| </enumeration> |
| </restriction> |
| </simpleType> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="TransferId"> |
| <complexType> |
| <attribute name="id" type="string" use="required"> |
| <annotation> |
| <documentation> |
| The unique transfer id for the transfer agent, e.g. <tt>customDataTransfer</tt> |
| </documentation> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="examples"/> |
| </appInfo> |
| <documentation> |
| The following is an example of the transfer adapter provider extension: |
| <p> |
| <pre> |
| <extension |
| id="dragDropListenerProviders" |
| name="%ext.dragDropListenerProviders" |
| point="org.eclipse.gmf.runtime.common.ui.services.dnd.dragDropListenerProviders"> |
| <DragDropListenerProvider |
| class="org.eclipse.test.project.ui.internal.providers.dnd.MyExplorerDragDropListenerProvider" |
| id="myexplorerDragDropListenerProvider"> |
| <Priority |
| name="Lowest"> |
| </Priority> |
| <ViewId |
| id="org.eclipse.test.modeler.ui.views.MyExplorer"> |
| <ElementType |
| class="org.eclipse.test.project.ui.internal.providers.explorer.MyElement"> |
| <OperationType |
| operation="drag"> |
| <TransferId |
| transferId="selection"> |
| </TransferId> |
| <TransferId |
| transferId="customData"> |
| </TransferId> |
| <TransferId |
| transferId="file"> |
| </TransferId> |
| <TransferId |
| transferId="text"> |
| </TransferId> |
| <TransferId |
| transferId="richText"> |
| </TransferId> |
| </OperationType> |
| <OperationType |
| operation="drop"> |
| <TransferId |
| transferId="selection"> |
| </TransferId> |
| <TransferId |
| transferId="customData"> |
| </TransferId> |
| </OperationType> |
| </ElementType> |
| </ViewId> |
| </DragDropListenerProvider> |
| </extension> |
| </pre> |
| </p> |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="apiInfo"/> |
| </appInfo> |
| <documentation> |
| The value of the <tt>class</tt> attribute must represent a subclass of |
| <tt>org.eclipse.gmf.runtime.common.core.service.AbstractProvider</tt> that implements |
| <tt>org.eclipse.gmf.runtime.common.ui.services.dnd.core.ITransferAdapterProvider</tt>, e.g. a subclass |
| of <tt>org.eclipse.gmf.runtime.common.ui.services.dnd.core.AbstractTransferAdapterProvider</tt>. |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="implementation"/> |
| </appInfo> |
| <documentation> |
| |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="copyright"/> |
| </appInfo> |
| <documentation> |
| Copyright (c) 2003, 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> |