Rational Developer for System z


Lesson 3: Add the action to an extension point

Adding extension points to the BrowserMemberAction lets Rational® Developer for System z® know where to incorporate your plug-in into the rest of the system.

To add the action to an extension point:

  1. In the Plug-in Development perspective, right click on your Eclipse plug-in project in the Package Explorer view and select PDE Tools > Open Manifest to open the Plug-in Editor.
  2. From the bottom menu of tabs, select Extensions. Click the Add button.
  3. In the New Extension dialog box that opens, type the filter text, org.eclipse.ui.popupMenus in the Extension Point filter text field.
  4. Highlight the extension point that matches your filter, and click Finish. You should see the extension you selected added to the list of extensions in the left panel on the Extensions page.
  5. Now, select the plugin.xml tab from the menu options at the bottom of the Plug-in Editor.
  6. Replace the existing code with the following:
    <plugin>
    	<extension
    		id="carma.bootcamp.ui.actions"
    		point="org.eclipse.ui.popupMenus">
    	<objectContribution
    		id="CARMA.Bootcamp.browse"
    		objectClass="com.ibm.carma.model.CARMAMember">
    	 <action
    		 class="browse.BrowseMemberAction"
    		 id="BootCamp.browse"
    		 label="Browse Member"
    		 menubarPath="open">
    	 </action>
    	</objectContribution>
    </extension>
    </plugin>

Feedback