Fan-In pluglet sample

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 class path, both at compile and at run time.

You can create pluglets to handle routine tasks, and pluglet functionality offers you an easy way to explore and learn the the application programming interfaces (API) offered by the workbench platform and other product extensions. From a workbench perspective you 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. For example, this pluglet sample calculates the fan-in metric for a class. The fan-in metric represents the number of references that a class has when selected in the Model Explorer view.

You need to follow the setup instructions before importing or starting to work with the new pluglet.


   Import and configure: 15 minutes
Details icon    Read about sample
Setup icon    Setup instructions
Import icon    Import the sample
Demo icon    See a demonstration
See tutorial icon    See a related tutorial