| <?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> |
| <p> |
| <pre> |
| <!-- Example of a PHP list template extension --> |
| <extension |
| point="org.eclipse.ogee.core.template"> |
| <starter_application |
| Template="org.eclipse.ogee.php.template.PHPListTemplate" |
| description="Generate a PHP List/Details starter application for displaying data in list and details screens." |
| displayName="List/Details Application" |
| environmentId="org.eclipse.ogee.environment.php" |
| icon="res/images/list_template.png" |
| id="org.eclipse.ogeee.php.list" |
| patternId="org.eclipse.ogee.pattern.list"> |
| </starter_application> |
| </extension> |
| |
| <!-- Example of a PHP proxy template extension --> |
| <extension |
| point="org.eclipse.ogee.core.template"> |
| <proxy |
| Template="org.eclipse.ogee.php.template.PHPProxyTemplate" |
| environmentId="org.eclipse.ogee.environment.php" |
| id="org.eclipse.ogee.php.proxy" |
| patternId="org.eclipse.ogee.pattern.exploration"> |
| </proxy> |
| </extension> |
| </pre> |
| </p> |
| <br> |
| </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.templates.Template</samp> class. |
| <br> |
| When extending this class you will get the following methods: |
| <p> |
| <pre> |
| /** |
| * 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'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; |
| </pre> |
| </p> |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appinfo> |
| <meta.section type="implementation"/> |
| </appinfo> |
| <documentation> |
| <br> |
| 1. <samp>org.eclipse.ogee.templates.javase</samp> plugin provides default implementation of a Java SE templates. |
| <br> |
| 2. <samp>org.eclipse.ogee.php</samp> plugin provides default implementation of a PHP templates. |
| <br> |
| 3. <samp>org.eclipse.ogee.templates.android</samp> plugin provides default implementation of an Android templates. |
| </documentation> |
| </annotation> |
| |
| |
| </schema> |