blob: 704b4a67bb056cba1a3ce224e39ef0a32684d234 [file] [log] [blame]
<?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&apos;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&apos;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&apos;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>
&lt;p&gt;
&lt;pre&gt;
&lt;!-- Example of a Java environment extension --&gt;
&lt;extension point=&quot;org.eclipse.ogee.core.environment&quot;&gt;
&lt;environment
Environment=&quot;org.eclipse.ogee.environment.javase.impl.JavaSeEnvironment&quot;
description=&quot;Java SE Environment&quot;
displayName=&quot;Java SE&quot;
icon=&quot;res/images/java_env.png&quot;
id=&quot;org.eclipse.ogee.environment.javase&quot;&gt;
&lt;/environment&gt;
&lt;/extension&gt;
&lt;/pre&gt;
&lt;/p&gt;
</documentation>
</annotation>
<annotation>
<appinfo>
<meta.section type="apiinfo"/>
</appinfo>
<documentation>
&lt;br&gt;
Plug-ins that want to extend this extension point must implement the &lt;samp&gt;org.eclipse.ogee.core.extensions.environments.Environment&lt;/samp&gt; class.
&lt;br&gt;
When extending this class you will get the following methods:
&lt;p&gt;
&lt;pre&gt;
/**
* 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);
&lt;/pre&gt;
&lt;/p&gt;
&lt;br&gt;
and you need to implement the following method:
&lt;p&gt;
&lt;pre&gt;
/**
* 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();
&lt;/pre&gt;
&lt;/p&gt;
</documentation>
</annotation>
<annotation>
<appinfo>
<meta.section type="implementation"/>
</appinfo>
<documentation>
&lt;br&gt;
1. &lt;samp&gt;org.eclipse.ogee.environment.javase&lt;/samp&gt; plugin provides default implementation of a Java SE environment.
&lt;br&gt;
2. &lt;samp&gt;org.eclipse.ogee.php&lt;/samp&gt; plugin provides default implementation of a PHP environment.
&lt;br&gt;
3. &lt;samp&gt;org.eclipse.ogee.environment.android&lt;/samp&gt; plugin provides default implementation of an Android environment.
</documentation>
</annotation>
</schema>