Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to add pop up menu using org.eclipse.ui.menus(pop up to be visible only in mail view lotus notes)
How to add pop up menu using org.eclipse.ui.menus [message #900103] Fri, 03 August 2012 22:10 Go to next message
shalini Pachineela is currently offline shalini Pachineela
Messages: 2
Registered: August 2012
Junior Member
I am working in Lotus notes plug in development.
I followed a youtube link - "java plug in development part 2" to create a pop up menu.
I want this pop up menu item to appear only when I right click on the mail document and now it appears
wherever I click on lotus notes.

//Plugin.xml


<extension
point="org.eclipse.ui.menus">
<menuContribution
locationURI="org.eclipse.ui.popup.any?after=additions?">
<command
commandId="com.sap.sod.ln.shelf.addon.contextmenu"
style="push">
</command>
</menuContribution>
</extension>
<extension
point="org.eclipse.ui.commands">
<command
id="com.sap.sod.ln.shelf.addon.contextmenu"
name="Add Email">
</command>
</extension>
<extension
point="org.eclipse.ui.handlers">
<handler
class="com.sap.sod.ln.shelf.addon.contextmenu.ContextMenuHandler"
commandId="com.sap.sod.ln.shelf.addon.contextmenu">
</handler>
</extension>


Could you please tell me how to create pop up menus that are only visible when clicked on the email document in lotus notes?

Thanks a lot!


Best Regards,
Shalini
Re: How to add pop up menu using org.eclipse.ui.menus [message #900142 is a reply to message #900103] Sat, 04 August 2012 11:08 Go to previous message
Brian de Alwis is currently offline Brian de Alwis
Messages: 242
Registered: July 2009
Senior Member
Use a visibleWhen clause keyed off the selection.

[Updated on: Sat, 04 August 2012 11:08]

Report message to a moderator

Previous Topic:Access data files in a jar file
Next Topic:Override -product argument in Eclipse RCP application
Goto Forum:
  


Current Time: Thu Aug 28 21:33:37 EDT 2014

Powered by FUDForum. Page generated in 0.01507 seconds