Customizations for Rational Rhapsody //called when the plug-in popup trigger (if applicable) is fired public void OnTrigger(String trigger); //called when the project is closed - if true is returned, the plug-in will be unloaded public boolean RhpPluginCleanup(); //called when Rhapsody exits public void RhpPluginFinalCleanup(); Creating a .hep file for the plug-in To provide Rational Rhapsody with the information necessary to load your plug-in, you must create a .hep file or add this information to an existing .hep file if you have already created one.
.hep file structure To understand the types of information that must be included for plug-ins in .hep files, it's best to start with the issue of what types of elements can be described in .hep files. .hep files are used to describe the following items: Љ helpers Љ plug-ins Љ plug-in commands While these items differ from one another, they use the same .hep file entries to provide Rational Rhapsody with the required information. Helpers are also used to extend the capabilities in Rational Rhapsody, but they use a different mechanism than plug-ins. Helpers are basically stand-alone applications. Plug-ins, on the other hand, are not stand-alone applications.
They just use the Rational Rhapsody callback mechanism to respond to Rational Rhapsody events. Plug-in commands don't really add any functionality of their own; they just describe context menu items that Rational Rhapsody should add to allow you to open a certain plug-in. For plug-ins, the .hep file must contain the following information: Љ the number of items (plug-ins/helpers/plug-in commands) defined in the file Љ the name of the plug-in Љ the Java class that implements the required methods Љ the Java classpath used by your plug-in 510 User Guide