| 
| Toolbar and Menu action work differently [message #329449] | Tue, 24 June 2008 16:55  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: spbgamer.yahoo.com 
 I have an action defined in my plugin.xml like this:
 
 <action
 class="someclass"
 helpContextId="contextId"
 icon="images/image.gif"
 id="action1"
 label="action label"
 menubarPath="mainMenu/slot2"
 style="pulldown"
 toolbarPath="MyToolBar"
 tooltip="tooltip">
 
 <selection
 name="*"
 class="org.eclipse.core.resources.IResource">
 </selection>
 </action>
 
 The action shows up just fine in the toolbar and in the menu.  The toolbar
 icon has the drop down arrow next to it and it gets populated by the
 getMenu() method in someclass.  The action in the menu has the submenu
 arrow next to it.  But, when I pass over my action in the menu the submenu
 is not displayed.  The getMenu() method in someclass is not called.
 
 Am I doing something wrong?  How does the submenu get populated?
 Shouldn't getMenu() be called in this instance as well?
 
 Thanks,
 Steve
 |  |  |  | 
|  | 
|  | 
|  | 
Powered by 
FUDForum. Page generated in 0.12097 seconds