MTJ Template

Identifier:
org.eclipse.mtj.ui.midlettemplate

Since:
1.0.0

Description:
By extending this extension point third party plugins are able to add mobile application templates to the templates wizard.

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

Configuration Markup:

<!ELEMENT extension (template+)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED

>

MTJ Template extension point defines a way for adding templates to MTJ.



<!ELEMENT template EMPTY>

<!ATTLIST template

id          CDATA #REQUIRED

name        CDATA #REQUIRED

overview    CDATA #REQUIRED

description CDATA #REQUIRED

permissions CDATA #IMPLIED

page        CDATA #REQUIRED

>


Examples:

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.

package $package_name$;

import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;

public class $class_name$ extends MIDlet {

 public $class_name$() {
 }

 protected void destroyApp(boolean arg0) throws MIDletStateChangeException {

 }

 protected void pauseApp() {

 }

 protected void startApp() throws MIDletStateChangeException {

 }
}

API Information:
[Enter API information here.]

Supplied Implementation:
[Enter information about supplied implementation of this extension point.]