To define a Java class for the plug-in:
Your plug-in class must implement the following methods:
//called when the plug-in is loaded
public abstract void RhpPluginInit(final IRPApplication rhpApp);
//called when the plug-in's menu item under the "Tools" menu is selected
public void RhpPluginInvokeItem();
//called when the plug-in popup menu (if applicable) is selected
public void OnMenuItemSelect(String menuItem);
//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();