| <?xml version='1.0' encoding='UTF-8'?> |
| <!-- Schema file written by PDE --> |
| <schema targetNamespace="org.eclipse.ogee.core" xmlns="http://www.w3.org/2001/XMLSchema"> |
| <annotation> |
| <appinfo> |
| <meta.schema plugin="org.eclipse.ogee.core" id="environment" name="Environment"/> |
| </appinfo> |
| <documentation> |
| This extension-point represents all the supported environments on which the modeled application can be executed. |
| </documentation> |
| </annotation> |
| |
| <element name="extension"> |
| <annotation> |
| <appinfo> |
| <meta.element /> |
| </appinfo> |
| </annotation> |
| <complexType> |
| <sequence> |
| <element ref="environment"/> |
| </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="environment"> |
| <complexType> |
| <attribute name="id" type="string" use="required"> |
| <annotation> |
| <documentation> |
| The id of the environment. |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="Environment" type="string" use="required"> |
| <annotation> |
| <documentation> |
| The Environment class. |
| </documentation> |
| <appinfo> |
| <meta.attribute kind="java" basedOn="org.eclipse.ogee.core.extensions.environments.Environment:"/> |
| </appinfo> |
| </annotation> |
| </attribute> |
| <attribute name="displayName" type="string" use="required"> |
| <annotation> |
| <documentation> |
| The display name of the environment. This will appear in the wizard's environments page. |
| </documentation> |
| <appinfo> |
| <meta.attribute translatable="true"/> |
| </appinfo> |
| </annotation> |
| </attribute> |
| <attribute name="description" type="string" use="required"> |
| <annotation> |
| <documentation> |
| The description of the environment. This will appear in the wizard's environments page. |
| </documentation> |
| <appinfo> |
| <meta.attribute translatable="true"/> |
| </appinfo> |
| </annotation> |
| </attribute> |
| <attribute name="icon" type="string" use="required"> |
| <annotation> |
| <documentation> |
| The icon of the environment. This will appear in the wizard's environments page. |
| </documentation> |
| <appinfo> |
| <meta.attribute kind="resource"/> |
| </appinfo> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <annotation> |
| <appinfo> |
| <meta.section type="since"/> |
| </appinfo> |
| <documentation> |
| 2.5.400 |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appinfo> |
| <meta.section type="examples"/> |
| </appinfo> |
| <documentation> |
| <p> |
| <pre> |
| <!-- Example of a Java environment extension --> |
| <extension point="org.eclipse.ogee.core.environment"> |
| <environment |
| Environment="org.eclipse.ogee.environment.javase.impl.JavaSeEnvironment" |
| description="Java SE Environment" |
| displayName="Java SE" |
| icon="res/images/java_env.png" |
| id="org.eclipse.ogee.environment.javase"> |
| </environment> |
| </extension> |
| </pre> |
| </p> |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appinfo> |
| <meta.section type="apiinfo"/> |
| </appinfo> |
| <documentation> |
| <br> |
| Plug-ins that want to extend this extension point must implement the <samp>org.eclipse.ogee.core.extensions.environments.Environment</samp> class. |
| <br> |
| When extending this class you will get the following methods: |
| <p> |
| <pre> |
| /** |
| * Sets the environment template type. |
| * This final method is called by the framework. |
| * |
| * @param templateType - the environment template type. |
| */ |
| public final void setTemplateType(TemplateType templateType); |
| </pre> |
| </p> |
| <br> |
| and you need to implement the following method: |
| <p> |
| <pre> |
| /** |
| * Each environment gets a template type from the framework. |
| * It decides which UI control to present according to the template type. |
| * Below is an example method that creates the UI according to the template type: |
| * private EnvironmentUi envUi; |
| * @return an environment UI control that corresponds to the given template type. |
| */ |
| public abstract EnvironmentUi createEnvironmentUI(); |
| |
| </pre> |
| </p> |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appinfo> |
| <meta.section type="implementation"/> |
| </appinfo> |
| <documentation> |
| <br> |
| 1. <samp>org.eclipse.ogee.environment.javase</samp> plugin provides default implementation of a Java SE environment. |
| <br> |
| 2. <samp>org.eclipse.ogee.php</samp> plugin provides default implementation of a PHP environment. |
| <br> |
| 3. <samp>org.eclipse.ogee.environment.android</samp> plugin provides default implementation of an Android environment. |
| </documentation> |
| </annotation> |
| |
| |
| </schema> |