blob: 56f6e63d20ea5545ade27c126c6dadf50eeef8cc [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="template" name="Template"/>
</appinfo>
<documentation>
This extension-point represents all the supported templates on which applications can be modeled (Proxy/Starter Application).
</documentation>
</annotation>
<include schemaLocation="starter_application.exsd"/>
<include schemaLocation="proxy.exsd"/>
<element name="extension">
<annotation>
<appinfo>
<meta.element />
</appinfo>
</annotation>
<complexType>
<choice>
<element ref="proxy"/>
<element ref="starter_application"/>
</choice>
<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>
<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 PHP list template extension --&gt;
&lt;extension
point=&quot;org.eclipse.ogee.core.template&quot;&gt;
&lt;starter_application
Template=&quot;org.eclipse.ogee.php.template.PHPListTemplate&quot;
description=&quot;Generate a PHP List/Details starter application for displaying data in list and details screens.&quot;
displayName=&quot;List/Details Application&quot;
environmentId=&quot;org.eclipse.ogee.environment.php&quot;
icon=&quot;res/images/list_template.png&quot;
id=&quot;org.eclipse.ogeee.php.list&quot;
patternId=&quot;org.eclipse.ogee.pattern.list&quot;&gt;
&lt;/starter_application&gt;
&lt;/extension&gt;
&lt;!-- Example of a PHP proxy template extension --&gt;
&lt;extension
point=&quot;org.eclipse.ogee.core.template&quot;&gt;
&lt;proxy
Template=&quot;org.eclipse.ogee.php.template.PHPProxyTemplate&quot;
environmentId=&quot;org.eclipse.ogee.environment.php&quot;
id=&quot;org.eclipse.ogee.php.proxy&quot;
patternId=&quot;org.eclipse.ogee.pattern.exploration&quot;&gt;
&lt;/proxy&gt;
&lt;/extension&gt;
&lt;/pre&gt;
&lt;/p&gt;
&lt;br&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.templates.Template&lt;/samp&gt; class.
&lt;br&gt;
When extending this class you will get the following methods:
&lt;p&gt;
&lt;pre&gt;
/**
* The template receives an environment and a pattern from the framework.
* The template needs to save the environment and the pattern as private members for future calls.
* Some templates don&apos;t have a pattern (can be null).
* Casting these elements may be done here or later in a different method.
*
* @param environment the given environment.
* @param pattern the given pattern, can be null.
*/
public abstract void setDependencies(Environment environment, Pattern pattern);
/**
* This method is responsible for the logic when Finish button is pressed.
* Here one can use the abilities of the environment and pattern models.
*
* @throws TemplateException if the method fails
*/
public abstract void onFinish(IProgressMonitor monitor) throws TemplateException;
&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.templates.javase&lt;/samp&gt; plugin provides default implementation of a Java SE templates.
&lt;br&gt;
2. &lt;samp&gt;org.eclipse.ogee.php&lt;/samp&gt; plugin provides default implementation of a PHP templates.
&lt;br&gt;
3. &lt;samp&gt;org.eclipse.ogee.templates.android&lt;/samp&gt; plugin provides default implementation of an Android templates.
</documentation>
</annotation>
</schema>