< Previous | Next >

Lesson 2: Create pluglets

Pluglets are written in Java and reside in a pluglet project.

Before you begin, you must complete Lesson 1: Creating a pluglet project

To create a pluglet:

  1. Click File > New > Pluglet to open the New Pluglet wizard.
  2. On the Select page, choose one of the pluglets. The available pluglets are Simple, UML Modeler, Workbench.
    1. To start with the basic pattern for all pluglets, on the Select page click Simple and then click Pluglet or Hello World Pluglet.
    2. To create a pluglet that lists the contents of a selected class in a model, on the Select page click UMLModeler and then click Model Enumeration.
    3. To create a pluglet that replaces the text editor selection, on the Select page click Workbench > Text Editor and then click Replace Text Editor Selection Pluglet.
  3. Click Next.
  4. Type the name for the new pluglet in the Name field. Start with an uppercase letter.
  5. Click Finish.
Now you are ready to begin Lesson 3: Running pluglets.

Lesson checkpoint

You learned the following:
  • The available pluglet templates
  • How to create pluglets
< Previous | Next >

Feedback