| Pop up menus Java UI Plugin Development [message #902691] |
Sun, 19 August 2012 12:36  |
shalini Pachineela Messages: 2 Registered: August 2012 |
Junior Member |
|
|
Hi,
I am working on Java UI Plug in development for Lotus notes. I want to add context menus based on the type of document that I have selected. Typically, different menus should be visible based on appointment, mail or contact document that I right click on.
I followed the Java UI exerciser and I noticed that an instance of "com.ibm.notes.java.ui.documents.NotesUIDocument" can find what document I currently am in. I followed the java UI exerciser project and it din't work for me. The menu always appears greyed out. And also, all the pop up menus added in the exerciser having an instance of com.ibm.notes.java.ui.documents.NotesUIDocument" is greyed out.
I attached a part of my plugin.xml related to this problem for your reference too.
<menuContribution
locationURI="popup:org.eclipse.ui.popup.any?after=additions"> <command
commandId="com.sap.sod.ln.shelf.addon.testmenu"
style="push">
<visibleWhen>
<count
value="1">
</count>
<iterate>
<instanceof
value="com.ibm.notes.java.ui.documents.NotesUIDocument">
</instanceof>
</iterate>
</visibleWhen>
</command>
</menuContribution>
<command
id="com.sap.sod.ln.shelf.addon.testmenu"
name="test menu">
</command>
<handler
class="com.sap.sod.ln.shelf.addon.contextmenu.TestClass"
commandId="com.sap.sod.ln.shelf.addon.testmenu">
<enabledWhen>
<iterate>
<instanceof
value="com.ibm.notes.java.ui.documents.NotesUIDocument">
</instanceof>
</iterate>
</enabledWhen>
<activeWhen>
<count
value="1">
</count>
</activeWhen>
</handler>
<handler
class="com.sap.sod.ln.shelf.addon.contextmenu.TestClass"
commandId="com.sap.sod.ln.shelf.addon.tool.tools">
</handler>
|
|
|
|
Powered by
FUDForum. Page generated in 0.11897 seconds