| <?xml version='1.0' encoding='UTF-8'?> |
| <!-- Schema file written by PDE --> |
| <schema targetNamespace="org.eclipse.ui"> |
| <annotation> |
| <appInfo> |
| <meta.schema plugin="org.eclipse.ui" id="preferenceTransfer" name="Preference Transfer"/> |
| </appInfo> |
| <documentation> |
| The workbench provides support for maintaining preferences. |
| The purpose of this extension point is to allow plug-ins to add |
| specific support for saving and loading specific groups of preferences. |
| Typically this is used for operations such as Import and Export. |
| </documentation> |
| </annotation> |
| |
| <element name="extension"> |
| <complexType> |
| <sequence> |
| <element ref="transfer" minOccurs="0" maxOccurs="unbounded"/> |
| </sequence> |
| <attribute name="point" type="string" use="required"> |
| <annotation> |
| <documentation> |
| a fully qualified identifier of the target extension point |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="id" type="string"> |
| <annotation> |
| <documentation> |
| an optional identifier of the extension instance |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="name" type="string"> |
| <annotation> |
| <documentation> |
| an optional name of the extension instance |
| </documentation> |
| <appInfo> |
| <meta.attribute translatable="true"/> |
| </appInfo> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="transfer"> |
| <complexType> |
| <sequence> |
| <element ref="mapping" minOccurs="1" maxOccurs="unbounded"/> |
| <element ref="description" minOccurs="0" maxOccurs="1"/> |
| </sequence> |
| <attribute name="id" type="string" use="required"> |
| <annotation> |
| <documentation> |
| a unique name that will be used to identify this transfer |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="name" type="string" use="required"> |
| <annotation> |
| <documentation> |
| a translatable name that will be used in UI when listing this item |
| </documentation> |
| <appInfo> |
| <meta.attribute translatable="true"/> |
| </appInfo> |
| </annotation> |
| </attribute> |
| <attribute name="icon" type="string"> |
| <annotation> |
| <documentation> |
| a relative name of the icon that will be used when displaying the transfer |
| </documentation> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="description" type="string"> |
| <annotation> |
| <appInfo> |
| <meta.element translatable="true"/> |
| </appInfo> |
| <documentation> |
| an optional subelement whose body should represent a short description |
| of the transfer engine functionality. |
| </documentation> |
| </annotation> |
| </element> |
| |
| <element name="mapping"> |
| <annotation> |
| <documentation> |
| a subelement which represents a <tt>org.eclipse.core.runtime.preferences.IPreferenceFilter</tt>. It specifies 1 or more mappings from a scope <tt>org.eclipse.core.runtime.preferences.IScope</tt> to 0 or more nodes where 0 or more keys are specified per node. The rules for export and import behaviour for a filter can be found in the specifications in <tt>org.eclipse.core.runtime.preferences.IPreferenceFilter</tt>. |
| </documentation> |
| </annotation> |
| <complexType> |
| <sequence> |
| <element ref="entry" minOccurs="0" maxOccurs="unbounded"/> |
| </sequence> |
| <attribute name="scope" type="string" use="required"> |
| <annotation> |
| <documentation> |
| an attribute specifying the name of the scope to map the provided nodes and keys to (for example "instance") |
| </documentation> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="entry"> |
| <annotation> |
| <documentation> |
| a subelement specifing the nodes and keys that are to be transferred for a given scope |
| </documentation> |
| </annotation> |
| <complexType> |
| <sequence> |
| <element ref="key" minOccurs="0" maxOccurs="unbounded"/> |
| </sequence> |
| <attribute name="node" type="string"> |
| <annotation> |
| <documentation> |
| an attribute specifing the preference node within the given scope to be transferred |
| </documentation> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="key"> |
| <complexType> |
| <attribute name="name" type="string" use="required"> |
| <annotation> |
| <documentation> |
| an attribute specifing a comma separated list of preference keys within the given node to be transferred, specifying the key attribute without specifying a matching node will result in a runtime error. |
| </documentation> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="since"/> |
| </appInfo> |
| <documentation> |
| 3.1 |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="examples"/> |
| </appInfo> |
| <documentation> |
| <p> |
| Example that export all tranfers, exports all nodes for specified scopes. |
| </p> |
| <p> |
| <pre> |
| <extension |
| point="org.eclipse.ui.preferenceTransfer"> |
| <transfer |
| icon="XYZ.gif" |
| name="Export All Transfer Test" |
| id="org.eclipse.ui.tests.all"> |
| <mapping scope="instance"> |
| </mapping> |
| <mapping scope="configuration"> |
| </mapping> |
| <mapping scope="project"> |
| </mapping> |
| <description> |
| Export all tranfer, exports all nodes for specified scopes |
| </description> |
| </transfer> |
| </extension> |
| </pre> |
| </p> |
| <p> |
| Very Simple Transfer only provides required info and no more. |
| </p> |
| <p> |
| <pre> |
| <extension |
| point="org.eclipse.ui.preferenceTransfer"> |
| <transfer |
| name="Bare Bones Transfer Test" |
| id="org.eclipse.ui.tests.all"> |
| <mapping scope="instance"> |
| </mapping> |
| </transfer> |
| </extension> |
| </pre> |
| </p> |
| <p> |
| Example that exports many combinations of keys and nodes |
| </p> |
| <p> |
| <pre> |
| <extension |
| point="org.eclipse.ui.preferenceTransfer"> |
| <transfer |
| icon="XYZ.gif" |
| name="Export many preferences" |
| id="org.eclipse.ui.tests.all"> |
| <mapping scope="instance"> |
| <entry node="org.eclipse.ui"> |
| <key name="showIntro,DOCK_PERSPECTIVE_BAR"/> |
| </entry> |
| <entry node="org.eclipse.ui.workbench"> |
| <key name="bogus,RUN_IN_BACKGROUND"/> |
| </entry> |
| <entry node="org.eclipse.ui.ide"/> |
| <entry node="org.eclipse.core.resources"/> |
| </mapping> |
| <mapping scope="configuration"> |
| </mapping> |
| <description> |
| Export many combinations of keys and nodes |
| </description> |
| </transfer> |
| </extension> |
| </pre> |
| </p> |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="apiInfo"/> |
| </appInfo> |
| <documentation> |
| |
| </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> |