| <?xml version='1.0' encoding='UTF-8'?> |
| <!-- Schema file written by PDE --> |
| <schema targetNamespace="org.eclipse.emf.common.ui" xmlns="http://www.w3.org/2001/XMLSchema"> |
| <annotation> |
| <appinfo> |
| <meta.schema plugin="org.eclipse.emf.common.ui" id="examples" name="Examples"/> |
| </appinfo> |
| <documentation> |
| <p>This extension point is used to describe examples to be added to the workspace. Each example is defined by the wizard that creates it and the list of projects to be created in the workspace.</p> |
| </documentation> |
| </annotation> |
| |
| <element name="extension"> |
| <annotation> |
| <appinfo> |
| <meta.element /> |
| </appinfo> |
| </annotation> |
| <complexType> |
| <sequence> |
| <element ref="example" minOccurs="1" 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 example. |
| </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="example"> |
| <complexType> |
| <sequence> |
| <element ref="projectDescriptor" minOccurs="1" maxOccurs="unbounded"/> |
| <element ref="fileToOpen" minOccurs="0" maxOccurs="unbounded"/> |
| </sequence> |
| <attribute name="id" type="string"> |
| <annotation> |
| <documentation> |
| An optional identifier of the example. |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="wizardID" type="string" use="required"> |
| <annotation> |
| <documentation> |
| The identifier of the <tt>org.eclipse.ui.INewWizard</tt> that installs this example. |
| </documentation> |
| <appinfo> |
| <meta.attribute kind="identifier" basedOn="org.eclipse.ui.newWizards/wizard/@id"/> |
| </appinfo> |
| </annotation> |
| </attribute> |
| <attribute name="pageImage" type="string"> |
| <annotation> |
| <documentation> |
| A relative path of an image that will be displayed in the Wizard's pages. |
| </documentation> |
| <appinfo> |
| <meta.attribute kind="resource"/> |
| </appinfo> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="projectDescriptor"> |
| <complexType> |
| <attribute name="name" type="string" use="required"> |
| <annotation> |
| <documentation> |
| The name of the project that will be created in the workspace. |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="contentURI" type="string"> |
| <annotation> |
| <documentation> |
| The location of the content of the project. This should be either an absolute URI or a plug-in-relative path identifying an archive file or a directory. In the latter case, the location must end with a /. |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="description" type="string"> |
| <annotation> |
| <documentation> |
| An optional attribute to hold a short text describing the project. |
| </documentation> |
| <appinfo> |
| <meta.attribute translatable="true"/> |
| </appinfo> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="fileToOpen"> |
| <complexType> |
| <attribute name="location" type="string" use="required"> |
| <annotation> |
| <documentation> |
| A workspace path of a file that will be presented to the user after the example is installed. |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="editorID" type="string"> |
| <annotation> |
| <documentation> |
| An optional attribute to indicate the editor that should be used to open the file. If this attribute is not used or if the editor is not available, the default editor for the resource will be used. |
| </documentation> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <annotation> |
| <appinfo> |
| <meta.section type="since"/> |
| </appinfo> |
| <documentation> |
| 2.2.0 |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appinfo> |
| <meta.section type="examples"/> |
| </appinfo> |
| <documentation> |
| <pre> |
| <extension point="org.eclipse.emf.common.ui.examples" > |
| <example |
| id="com.mycompany.example.XYZ" |
| wizardID="com.mycompany.example.XYZNewWizard"> |
| <fileToOpen location="xyz1/readme.html"/> |
| <projectDescriptor |
| name="p1" |
| contentURI="platform:/plugin/com.mycompany.example/XYZ1.zip" |
| description="%_UI_XYZ1_desc"/> |
| <projectDescriptor |
| name="p2" |
| contentURI="platform:/plugin/com.mycompany.example/XYZ2/" |
| description="%_UI_XYZ2_desc"/> |
| </example> |
| </extension> |
| </pre> |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appinfo> |
| <meta.section type="apiInfo"/> |
| </appinfo> |
| <documentation> |
| The value of the <tt>wizardID</tt> attribute must be the ID of a registered <tt>org.eclipse.ui.INewWizard</tt>. |
| </documentation> |
| </annotation> |
| |
| |
| <annotation> |
| <appinfo> |
| <meta.section type="implementation"/> |
| </appinfo> |
| <documentation> |
| EMF provides one implementation of this extension point that install the EMF EXTLibrary example. |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appinfo> |
| <meta.section type="copyright"/> |
| </appinfo> |
| <documentation> |
| Copyright (c) 2006 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 v2.0 which accompanies this distribution, and is available at <a |
| href="http://www.eclipse.org/legal/epl-v20.html">http://www.eclipse.org/legal/epl-v20.html</a> |
| </documentation> |
| </annotation> |
| |
| </schema> |