Model Enumeration 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 their classpath, both compile and runtime.

You can create pluglets to handle routine tasks and it offers you an easy way to explore and learn API's offered by the workbench platform and other product extensions. From a workbench perspective your could write the statement Platform.getWorkbench() and gain completed access to the entire workbench and its parts. From a modeling perspective, the UMLModeler class would allow you access to a model and its contents. For example, this pluglet sample lists the contents of a selected class in a model.


Time icon    Import and configure: 15 minutes
Setup icon    Setup instructions
Import icon    Import the sample
See tutorial icon    See a related tutorial