Skip to content

Creating a New Widget Library

jhpedemonte edited this page Feb 22, 2012 · 2 revisions

This wiki page describes steps for creating a new widget library plugin for Maqetta.

Table of Contents

Set up empty project in Eclipse

In Eclipse, issue New->Other and choose "Plug-in project". Give a name to the new project. The convention we have been following is:

davinci.<libname>_<version>

as in davinci.dojo_1_5 (using an actually version#) or davinci.svgweb_2009_11_23 (using a date because the given library doesn't have a convenient version# to use).

Then click Next.

click yes on "Create Java project" and turn on the OSGI/Equinox option for "This plug-in is targeted to run with". Then click Next.

Turn off the checkbox for "Generate an Activator...". Click Next.

Turn off the checkbox for creating a template. Click Finish.

Clone, then modify, one of the existing widget library plugins

Using desktop tools, copy the files for one of the existing widget library plugins into the directory for the new widget library. Then, systematically rename and/or modify folders and files to replace all occurrences of the cloned widget library names to appropriate names for the new widget library.

Refresh and add new widget library to Run Configurations

In Eclipse, F5/Refresh the project for the new widget library so Eclipse is current with the modifications you made in the previous step.

Open Run Configurations. Make sure that the new widget library is checked.

At this point, create test widgets and debug.

Add the new widget library to GitHub repository

(not yet completed)

Clone this wiki locally