Defining Java class for plug-in

About this task

To define a Java class for the plug-in:

Procedure

  1. In the Package Explorer View, right-click the project.
  2. Select New > Class.
  3. When the New Java Class window is displayed, give the class a name, enter RPUserPlugin for the Superclass, and make sure the Inherited abstract methods check box is selected.

Results

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();

Feedback