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

DSDP/TML/Creating TmL Plugins

< DSDP‎ | TML
Revision as of 13:35, 15 May 2008 by Wfr004.motorola.com (Talk | contribs) (Purpose)

Creating TmL plugins using log, i18n and exceptions

This tutorial is under development, please check it daily for new updates


Purpose and Target audience

This guide shows how to create TmL plugins. The target users of this tutorial are anyone who wants to create plugin in TmL context. If you are a contributor of TmL project, please use this template to create your plugins. They will be integrated into TmL repository faster. Besides, if you just need to use the framework feel free to choose your best plugin template. We suggest use this template because some features as internationalization, log messages and exception mechanism were already implemented in common classes of TmL project.

Initial requirements

Follow the steps below to prepare your environment before you be able to create TmL plugins.If you already had an Eclipse Europa(3.3) installed in your machine go to step 2.

  1. Download and install the most recent Eclipse Europa version.[1]
  2. Connect to Eclipse CVS Repository and get the project set for Common utilities (see instructions here).

After that, your workspace should has a new project named org.eclipse.tml.common.utilities

Creating the TmL plugin

  1. Create a new Plug-in project using the Eclipse New Project Wizard.
    Step1.jpg
  2. 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)
    Step2.jpg
  3. Fill provider, version and name and change the default name for activator to this format "<your-plugin-name>Plugin". (ex: SamplePlugin)
    Step3.jpg
  4. Uncheck option to select a code template.
    Step4.jpg

Connecting the plugin with TmL framework

  1. Open plugin.xml in the dependencies tab
  2. Add org.eclipse.tml.common.utilities
    Tml plugin dependencies.jpg

Defining Icons

Inserting I18N support

Inserting LOG support

Inserting Exception support

Conclusion

Back to the top