若要定義外掛程式的 Java 類別:
外掛程式類別必須實作下列方法:
//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();