MTJ development examples

This section provides examples on MTJ development.

Example 1: Get Extension Implementation

The figure below illustrates the Get Extension example.

Example 2: Get DevicePlatform, Device and RuntimePlatform

The figure below illustrates the Get DevicePlatform example.

 

Example 3: Access and modify MTJ project's data

The figure below illustrates how to access and modify MTJ project's data

Example 4: Adding runtime platform Definition to a project

The figure below illustrates how to add a runtime platform definition to a project.

Example 5: Get Project's default targets

The figure below illustrates how to get the project's default targets.

Example 6: Deploy project's data

The figure below illustrates how to deploy the project's data.

Example 7: Persistent Store usage and runtime platforms.

PersistentStorageProvider –plugin stores the RuntimePlatforms, that are used in every workspace, to its own location under the used Eclipse instance plugin -folder. (The used Eclipse instance locates the stored meta-data every time , regardless of the workspace location). The storage location cannot be changed from the Eclipse preferences. The figure below illustrates how to access and modify the stored definitions.

The figure below illustrates another example on how  access and  modify the stored definitions.

Example 8: Get Admin GUI

Each service provider plugin should use the AdminGuiProvider feature for providing the administration UIs from its properties. The figure below illustrates how to do this.


MTJ architecture


Checking out MTJ code from CVS