Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » DropDown action with toggle button
DropDown action with toggle button [message #293095] Tue, 18 October 2005 08:07 Go to next message
Eclipse UserFriend
Originally posted by: teber.gmx.net

Hy all,

I currently try to create an action
with a drop down list. My problem is
that for the button I need a "toggle"
and not a "push" behaviour.
So if I add the action with an actionset,
I can set the style either to "toggle" or
to "pulldown", but not to both. My first
idea was to split the action into two
separate ones. While the toggle button is
an easy one, the dropdown menu gives
me headache. If I use a ContributionItem
I can easily imlpement it, but cannot
place it next to my toggle button and if
I use the "pulldown" style of a normal
action I have the normal "push" button which
I do not need.

Any ideas?

Regards,

torsten
Re: DropDown action with toggle button [message #293101 is a reply to message #293095] Tue, 18 October 2005 12:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: douglas.pollock.magma.ca

torsten wrote:
> I currently try to create an action with a drop down list. My problem is
> that for the button I need a "toggle" and not a "push" behaviour. So if I
> add the action with an actionset, I can set the style either to "toggle"
> or to "pulldown", but not to both. My first idea was to split the action
> into two separate ones. While the toggle button is an easy one, the
> dropdown menu gives me headache. If I use a ContributionItem I can easily
> imlpement it, but cannot place it next to my toggle button and if I use
> the "pulldown" style of a normal action I have the normal "push" button
> which I do not need.
>
> Any ideas?

I'm afraid this just isn't really supported. Look at
ToolItem.createHandle(int) or the ToolItem class javadoc. Even if SWT
supported it, actionSets don't support it either. Which means you are
doubly screwed.

In 3.2, this might end up being possible by putting a custom widget into the
tool bar. But, that's not going to help you now. :(



sorry,
d.
Re: DropDown action with toggle button [message #293108 is a reply to message #293101] Tue, 18 October 2005 14:12 Go to previous message
Eclipse UserFriend
Originally posted by: teber.gmx.net

Douglas Pollock wrote:
> I'm afraid this just isn't really supported. Look at
> ToolItem.createHandle(int) or the ToolItem class javadoc. Even if SWT
> supported it, actionSets don't support it either. Which means you are
> doubly screwed.
>
> In 3.2, this might end up being possible by putting a custom widget into the
> tool bar. But, that's not going to help you now. :(
>
>
thanx for your response douglas.
at least I can safe my time and do no further investigations on this
topic. so I'm thinking about an alternative way...

regards,

torsten
Previous Topic:Java Search never returns results
Next Topic:3.2 rollout
Goto Forum:
  


Current Time: Thu Jul 25 20:27:17 GMT 2024

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

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

Back to the top