Pluglets

A pluglet source file is no different from any other Java source file. Pluglet writers can specify what Eclipse plug-ins their pluglets require, and this controls the pluglet classpath, both at compile and at runtime.

The Fan-In and Model Enumeration pluglet samples provide simple examples of pluglets that highlight a specific utility or API. The Fan-In pluglet sample calculates the fan-in metric for a class. The Model Enumeration pluglet sample lists the contents of a selected class in a model.

When you create a new pluglet, using the New Pluglet wizard, the following pluglets are available:

You can create pluglets to handle routine tasks, and the pluglet functionality offers you an easy way to explore and learn the API offered by the workbench platform and other product extensions. From a workbench perspective your can write the statement Platform.getWorkbench() and gain complete access to the entire workbench and its parts. From a modeling perspective, the UMLModeler class allows you access to a model and its contents.


Feedback