Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "DSDP/MTJ/Discussion/New APIs/version 1.0/automatic SDK install"

< DSDP‎ | MTJ‎ | Discussion‎ | New APIs‎ | version 1.0
(New page: It would be nice to have a way to automatically "install" without the need to manually execute the import process. The idea is that there is an extension point that a SDK plug-in can imple...)
 
Line 1: Line 1:
It would be nice to have a way to automatically "install" without the need to manually execute the import process. The idea is that there is an extension point that a SDK plug-in can implement and return to MTJ the list of devices that are provided by it.
+
This API idea is to provide a mechanism to automatically register new SDKs devices once MTJ is started. The main user of this API are SDK Providers that wants to distribute a plugins that will automatically imports its SDKs. This avoid the need to the user to manually go to "Preverences->JavaME->Device Management" and import the device from the UI.
 +
 
 +
This API devices a extension point with the following format:
 +
*'''extension'''
 +
** <font color="green"><b>name</b></font> (String Attribute) <font color="#960018"><b>[OPTIONAL]</b></font><p>Description: Optional name of this extension</p>
 +
** <font color="green"><b>sequence [1;1]</b></font> (installer) <font color="#960018"><b>[REQUIRED]</b></font><p>Description: Sequence of 1..1 that represents the installer</p>
 +
 
 +
*'''installer'''
 +
** <font color="green"><b>name</b></font> (Java Attribute) <font color="#960018"><b>[REQUIRED]</b></font><p>Description: implements org.eclipse.mtj.core.sdk.ISDK.</p>
 +
 
 +
The ISDK interface is simple. it only provides 3 methods that need to be implemented by the SDK Provider:
 +
* <font color="green"><b>String getDescription()</b></font>: Returns the textual description of this SDK
 +
* <font color="green"><b>String getName()</b></font>: Returns the SDK name that is also presented on the Devices
 +
* <font color="green"><b>List<IDevice> getDeviceList()</b></font>: Returns a list of IDevices
 +
 
 +
Each SDK provider is responsible to know where its SDK is installed. This is necessary in order to create the Devices.

Revision as of 11:51, 12 March 2009

This API idea is to provide a mechanism to automatically register new SDKs devices once MTJ is started. The main user of this API are SDK Providers that wants to distribute a plugins that will automatically imports its SDKs. This avoid the need to the user to manually go to "Preverences->JavaME->Device Management" and import the device from the UI.

This API devices a extension point with the following format:

  • extension
    • name (String Attribute) [OPTIONAL]

      Description: Optional name of this extension

    • sequence [1;1] (installer) [REQUIRED]

      Description: Sequence of 1..1 that represents the installer

  • installer
    • name (Java Attribute) [REQUIRED]

      Description: implements org.eclipse.mtj.core.sdk.ISDK.

The ISDK interface is simple. it only provides 3 methods that need to be implemented by the SDK Provider:

  • String getDescription(): Returns the textual description of this SDK
  • String getName(): Returns the SDK name that is also presented on the Devices
  • List<IDevice> getDeviceList(): Returns a list of IDevices

Each SDK provider is responsible to know where its SDK is installed. This is necessary in order to create the Devices.

Copyright © Eclipse Foundation, Inc. All Rights Reserved.