|Re: item pulldown in toolbar [message #528179 is a reply to message #528159]
||Mon, 19 April 2010 15:20
| Paul Webster
Registered: July 2009
> I encountered a problem with item pulldown in toolbar.
> i add item from "plugin.xml" like command with style "pulldown" :
> 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.
Powered by FUDForum
. Page generated in 0.02365 seconds