Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Popup menu for CNF based view is not showing
Popup menu for CNF based view is not showing [message #1761640] Thu, 11 May 2017 13:54
Jens Rabe is currently offline Jens RabeFriend
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?
Previous Topic:SWT Browser HTML5 canvas rendering
Next Topic:Force a cheatsheet to advance
Goto Forum:
  


Current Time: Sat Apr 27 03:17:07 GMT 2024

Powered by FUDForum. Page generated in 0.03114 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top