Popup menu, objectContribution [message #816172] |
Thu, 08 March 2012 09:06  |
Eclipse User |
|
|
|
Hi,
i am trying to attach popup menu with some object... so in my application GUI, where ever any control backed by specific object is right clicked then popup menu should appear. For example, i have view containg table control which contains hellomenumodel.Test objects.
hellomenutest.Action2 is also added to project but when i right click the table objects then popup menu does not appear...
<extension
point="org.eclipse.ui.popupMenus">
<objectContribution
id="HelloMenuTest.objectContribution1"
objectClass="hellomenumodel.Test">
<action
class="hellomenutest.Action2"
enablesFor="1"
id="HelloMenuTest.action2"
label="test action"
menubarPath="HelloMenuTest.menu2">
</action>
<menu
id="HelloMenuTest.menu2"
label="test menu">
</menu>
</objectContribution>
</extension>
is there anything missing?
cheers,
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04820 seconds