Pluglets are written in Java™ and reside in a pluglet project.
Before you begin
You need to create a pluglet project
first. After you finish creating the pluglet project, use the New
Pluglet wizard to create your new pluglet.
Procedure
Click File > New > Pluglet to open
the New Pluglet wizard.
On the Select page, choose one of the pluglets. The available
pluglets are Simple, UML Modeler, Workbench.
To start with the basic pattern for all pluglets, on
the Select page click Simple and then click Pluglet.
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.
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.
Click Next.
Type the name for the new pluglet in the Name field. Start with an uppercase letter.
Click Finish.
Select the pluglet in the Package Explorer view.
Click Run > Internal Tools, and click the name of your
pluglet.
Click Run.
What to do next
See the Implementing pluglets
topic for an example of how to work with a Model Enumeration pluglet.