|
Re: item pulldown in toolbar [message #528179 is a reply to message #528159] |
Mon, 19 April 2010 15:20 |
|
Fabien wrote:
> I encountered a problem with item pulldown in toolbar.
>
> i add item from "plugin.xml" like command with style "pulldown" :
> http://img687.imageshack.us/i/screennh.png/
>
> when i click on part 2, menu appears, but when i click on part 1, no
> menu appears because in event send, event.detail = 0 and not 4, so in
> class CommandContributionItem#openDropDownMenu, it's considered not like
> a drop-down but like a button ...
If you click on the main part of the button, you expect to execute the
command (event.detail==0). Think like the Run button ... if you click
on the button, it runs the last launch config. If you click on the down
arrow, you get a menu and get to pick something.
PW
--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
|
|
|
|
Powered by
FUDForum. Page generated in 0.03294 seconds