How to extend the right click text selection menu in a Notes Document

Eclipse has a very powerful feature called the popupMenus extension point. Here you can define new actions to show up in that menu based on a text selection. In the sample XML below (and the animated GIF) I just enable for “*” which means any text selection. I expose some actions from my web component on the right and I call the “Set Contact Comment” action which receives the selected text and puts it in the field. Since Notes uses the selection in its document viewer anyone can add actions to text selections via an extension similar to the following:

point=”org.eclipse.ui.popupMenus”> 

class=”com.ibm.mytests.ActionDelegate” definitionId=”com.ibm.mytests.ActionDelegate” enablesfor=”*” id=”com.ibm.rcp.composite.container.browser.sample.views.Balfes-Net:setContact Comment”
label=”Set Contact Comment”/>

 

Click picture to make larger

Tags: : :

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.