** Implement a MIDletTemplateProvider to build the UI and provide a dictionary of tags and values;

+

** Implement a ITemplateProvider to build the UI and provide a dictionary of tags and values;

'''Template Creation:'''

'''Template Creation:'''

<br>

<br>

−

* Templates are regular Java source files with special tags in the form $<tag-name>$. These tags will be replaced by the MIDletTemplateProvider instance provided in the extension as described bellow. MTJ will collect all template files and use the MIDletTemplateProvider instance's dictionary to replace all template tags by the dictionary values. ''The dictionary will usually have values for custom fields on the wizard'''.

+

* Templates are regular Java source files with special tags in the form $<tag-name>$. These tags will be replaced by the ITemplateProvider instance provided in the extension as described bellow. MTJ will collect all template files and use the ITemplateProvider instance's dictionary to replace all template tags by the dictionary values. '''The dictionary will usually have values for custom fields on the wizard'''.

Core

This section lists the main core requirements for the MIDlet templates feature.

ID: templates:FR001 - MTJ shall support the creation of MIDlets from templates.

Description: MTJ shall provide an extensible and flexible way for third party plugins to contribute
with templates for MIDlet creation. These templates will help users to learn API's usage and reduce the
programming effort.

Description: An Extension Point where third party plugins can provide MIDlet templates to be used by MTJ upon creation of MIDlets from templates.

Developers aiming to contribute with templates will need to do the following tasks:

Extend the extension point;

Create a folder structure as described bellow;

Implement a ITemplateProvider to build the UI and provide a dictionary of tags and values;

Template Creation:

Templates are regular Java source files with special tags in the form $<tag-name>$. These tags will be replaced by the ITemplateProvider instance provided in the extension as described bellow. MTJ will collect all template files and use the ITemplateProvider instance's dictionary to replace all template tags by the dictionary values. The dictionary will usually have values for custom fields on the wizard.

ID: templates:FR004 - New MIDlet From Template Wizard.

Description: MTJ shall open wizard upon context sensitive menu option New > Java ME MIDlet From Template selection. It must display all available templates and build a MIDlet from the selected template.

Description: New MIDlet From Template Wizard shall display a custom page depending on the selected template in order to setup template specific fields. The custom page will have a common part for every template and a custom one as show on the related image.