Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » item pulldown in toolbar
item pulldown in toolbar [message #528159] Mon, 19 April 2010 10:52 Go to next message
Fabien is currently offline Fabien
Messages: 5
Registered: July 2009
Junior Member
I encountered a problem with item pulldown in toolbar.

i add item from "plugin.xml" like command with style "pulldown" :

http://img687.imageshack.us/img687/8121/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 ...

i think it's bug, but i'm not sure ?

Eclipse version 3.4
Re: item pulldown in toolbar [message #528179 is a reply to message #528159] Mon, 19 April 2010 11:20 Go to previous messageGo to next message
Paul Webster is currently offline Paul Webster
Messages: 6857
Registered: July 2009
Location: Ottawa
Senior Member

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


Re: item pulldown in toolbar [message #528181 is a reply to message #528179] Mon, 19 April 2010 11:36 Go to previous message
Fabien is currently offline Fabien
Messages: 5
Registered: July 2009
Junior Member
ok, many thanks
Previous Topic:Looking for a SWT Calendar Widget
Next Topic:What is the NG to ask questions re. the JavaScript editor?
Goto Forum:
  


Current Time: Sun Jul 13 22:43:50 EDT 2014

Powered by FUDForum. Page generated in 0.01723 seconds