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/TML/Creating TmL Plugins"

< DSDP‎ | TML
(Creating TmL plugins using log,i18n and exceptions)
(Creating TmL plugins using log,i18n and exceptions)
Line 4: Line 4:
  
 
== Purpose ==
 
== Purpose ==
This guide shows how to create TmL plugins. The target users of this tutorial are any kind of plugin inside TmL context. It is mandatory use this template to contribute plugins to TmL project. But , 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.
+
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 ==
 
== 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 installed in your machine go to step 2.
+
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.
  
 
# Download and install the most recent Eclipse Europa version.[http://www.eclipse.org/downloads/]
 
# Download and install the most recent Eclipse Europa version.[http://www.eclipse.org/downloads/]

Revision as of 13:34, 15 May 2008

Creating TmL plugins using log,i18n and exceptions

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


Purpose

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