DSDP  -  Mobile Tools for Java 1.0   (MTJ)   New & Noteworthy

This document contains descriptions of some of the more interesting or significant changes made to MTJ for the 1.0 release. This release focus mainly in defining the MTJ API. This API enables any plug-in developer to extend MTJ to add vendor specific features. Besides that, there were three main features added that are listed below: They are grouped into:



Editors

New Running Shortcut

The Application Descriptor editor now offers a new Shortcut for running a an emulated Java ME MIDlet using OTA deployment.

Picture showing the Launch as emulated Java ME OTA option in the Application Descriptor editor

New build properties tab

The Application Descriptor editor now offers a new tab for editing the build properties file. This page allows the user allows to configure a MIDlet suite project to have several configuration. Each configuration is associated to a SDK/Device that represents it and, during the build process, a JAR/JAD is generated for each configuration. One limitation of this feature was that all files were always included on each configuration, and there was no way to define that one specific image, for instance, should only be added to one specific configuration. The build property file solves that.

Sign Tab

On the build properties file there is an entry for each configuration that is added to the project and then the developer is able to select which files should included on the final JAR package. It is also possible to filter that java files that are going to be build on each configuration.

Sign Tab

New Sign tab

The Application Descriptor editor now offers a new tab for choosing one the available key alias from a keystore to be used during the sign of the final MIDlet suite deployable package.

Sign Tab

Besides that it also provides the option to scan the MIDlet suite code to find the APIs that requires some specific permissions to be used and suggest the permissions that should be added to the final jad file.

Scan Permissions

New Symbol Set tab

The Device editor now offers a new tab for inspecting the Symbol set correspondent to the selected Device. This Symbol Set is similar to the one that will be used for preprocessing.

Symbol Set tab

eSWT Templates

A set of templates have been added to provide code building blocks for eSWT widgets on the Java Editor.

To add, for example, an eSWT MultiPageDialog, type Multi and press Ctrl+Space, select the MultiPageDialog eSWT template, and press Enter.

Create a MultiPageDialog with the MultiPageDialog template

To see all available templates go to the Java > Editor > Templates preference page or open the Templates view through Window > Show View > Other....


Dialogs

Templates are now available on the New Java ME MIDlet Dialog

The MIDlet templates feature make it is easy to start the development of some specific types of MIDlets. The main idea of it is to provide a basic set of templates that will automatically generate the code that is necessary to implement some specific feature.

For example there is a Game Template that provide a simple canvas implementation and all thread management to update it in a predefined rate. The templates are presented on the MIDlet Create Wizard and each of them can provide a customized Wizard to set some template specific properties

MIDlet Wizard

Currently there are 6 templates being distributed with DSDP Mobile Tools for Java Runtime package. Five of them use basic MIDP APIs and can be executed on any MIDP complaint SDK. One of them is a eSWT template that requires a SDK that supports this API.


Property pages

Signing Property Page

On the the project's Signing property page the developer is now able to manage specific signing options for the current project, for example the password request rule (always ask or save the password) or the option to use a local keystore instead of the global one specified in the preferences.

Signing Property page


Preference pages

Signing Preference Page

The Signing page enables the JavaME developer to manage the keystore that is used to sign the MIDlet suites directly from the Eclipse IDE.

Signing Preference Page

New Java ME Development Capability

The General > Capabilities preference page page now offers a Java ME Development capability. This enables the user to enable/disable MTJ components.

Java ME Development capability