IBM® Rational® Rhapsody® plug-ins are Java applications that users can write to extend product capabilities. Rational Rhapsody loads these applications into its process and provides the applications with an interface to the functions.
The capabilities that plug-ins provide can be accessed through customized menu items integrated into product menus. Plug-ins can also provide capabilities that are not opened directly by the user through the GUI, but rather are triggered by specific Rational Rhapsody events, such as model checking or code generation. Plug-ins can respond to any of the events defined in the Rational Rhapsody Callback API.
Creating a product plug-in includes writing the Java application creating a .hep file that contains the requirements for loading the plug-in, and attaching the .hep file to a profile.
The IBM Rational Rhapsody installation contains a sample plug-in called Simple plug-in (under ExtensibilitySamples).
To see the capabilities that this sample plug-in adds to the product, add SimplePluginProfile.sbs to a model "As Reference."
This profile loads the plug-in and a message is displayed indicating the product build number you are using.
The plug-in adds the following menu items:
In addition, the plug-in causes messages to be displayed at the following points: before code generation, before project save, after project save, before check model.