Model Enumeration pluglet
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 class path, both at compile and at runtime.
Time required: 15 minutes
This sample might
require some optionally installable components. If you encounter errors or
cannot find user interface options when you run the sample, ensure that you
installed the appropriate optional components.
To successfully
work with this sample, you need to have the following tools and components
installed:
You can create pluglets to handle routine tasks and
pluglet functionality offers you an easy way to explore and learn the application
programming interfaces (APIs) offered by the workbench platform and other
product extensions. From a workbench perspective your can write the statement
Platform.getWorkbench() and gain completed 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 lists
the contents of a selected class in a model.
Note: You need to follow the
setup instructions before importing or starting to work with the new pluglet.