Popup menu for CNF based view is not showing [message #1761640] |
Thu, 11 May 2017 13:54 |
Jens Rabe Messages: 81 Registered: September 2013 |
Member |
|
|
I created a view based on the CNF, and want to add a right-click menu that shows when I right-click an element in the tree.
So far, I have something like the following in my plugin.xml:
<extension
point="org.eclipse.ui.views">
<view
class="com.mycompany.MyCNFView"
id="com.mycompany.my.cnf.tree"
name="My CNF View"
restorable="true">
</view>
</extension>
<extension
point="org.eclipse.ui.menus">
<menuContribution
allPopups="false"
locationURI="popup:com.mycompany.my.cnf.tree">
<command
commandId="com.mycompany.commands.foo"
icon="images/cmd_foo.png"
style="push">
</command>
</menuContribution>
</extension>
<extension
point="org.eclipse.ui.commands">
<command
id="com.mycompany.commands.foo"
name="Do Foo">
</command>
</extension>
<extension
point="org.eclipse.ui.handlers">
<handler
class="com.mycompany.handlers.MyFooHandler"
commandId="com.mycompany.commands.foo">
</handler>
</extension>
But the popup menu doesn't show up.
When I change popup: to toolbar: however, the command DOES appear, but in the view's toolbar.
What am I missing?
|
|
|
Powered by
FUDForum. Page generated in 0.03114 seconds