Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "DSDP/TML/Creating TmL Plugins update"
(→Creating the TmL plugin) |
(→Creating a TmL device) |
||
Line 19: | Line 19: | ||
# Defining the state machine which describes the device behavior in what concerns the TmL framework. | # Defining the state machine which describes the device behavior in what concerns the TmL framework. | ||
# Creating an eclipse extension which represents the device being created. | # Creating an eclipse extension which represents the device being created. | ||
− | # Creating one eclipse extension to represent each of the states pertaining to the device state machine. | + | # Representing the state machine defined on the TmL framwork. This comprises the following steps: |
− | # For each possible event on the device state machine, create an eclipse extension to represent the state changes | + | ## Creating one eclipse extension to represent each of the states pertaining to the device state machine. |
+ | ## For each possible event on the device state machine, create an eclipse extension to represent the state changes which occur as a consequence of this event. | ||
# Create a new Plug-in project using the Eclipse New Project Wizard.<br> [[Image:step1.jpg]] | # Create a new Plug-in project using the Eclipse New Project Wizard.<br> [[Image:step1.jpg]] |
Revision as of 15:36, 5 December 2008
Contents
Creating TmL devices
Purpose and Target audience
This tutorial provides directions on creating devices:LINK_CONCEPT for TmL.
The target audience is anyone who wants to create a device:LINK_CONCEPT in TmL context.
Initial requirements
Here follows the steps necessary to prepare the environment to create TmL devices.
- Download and install the most recent Eclipse Europa (3.3) version. Click here for the eclipse download site.
- Connect to Eclipse CVS Repository and get the project set for Common utilities (see instructions here).
After that, your workspace should contain a new project named org.eclipse.tml.common.utilities.
Creating a TmL device
The process of creating a TmL device consists of the following:
- Defining the state machine which describes the device behavior in what concerns the TmL framework.
- Creating an eclipse extension which represents the device being created.
- Representing the state machine defined on the TmL framwork. This comprises the following steps:
- Creating one eclipse extension to represent each of the states pertaining to the device state machine.
- For each possible event on the device state machine, create an eclipse extension to represent the state changes which occur as a consequence of this event.
- Create a new Plug-in project using the Eclipse New Project Wizard.
- If this plug-in will be contributed to TmL certify that it is using the naming conventions in Development Conventions and Guidelines or check with TmL committer the best name for that. (ex: org.eclipse.tml.sample)
- Fill provider, version and name and change the default name for activator to this format "<your-plugin-name>Plugin". (ex: SamplePlugin)
- Uncheck option to select a code template.