Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Problem with toolbar button activation
Problem with toolbar button activation [message #489003] Thu, 01 October 2009 08:08 Go to next message
sneha is currently offline snehaFriend
Messages: 25
Registered: July 2009
Junior Member
Hi,

I am developing RCP application. In this I have created a view with
toolbar. The toolbar contains some items: zoom in, zoom out etc.
actions are added to the toolbar using the IToolbarManager and IActionBar.

When I click on the zoom in icon, the diagram in my view is zoomed in on
first click.
However after that, the toolbar icon becomes deactivated (if we don't
move the mouse).
In order to activate the zoom in icon, we need to move the mouse out of
the icon area and then back on the icon. This activates the icon.

This is not the expected behavior.
Expected behavior is same as observed for toolbar icons in Eclipse:
When we click on any toolbar icon, multiple clicks (without moving the
mouse) should not deactivate the icons and the actions corresponding to
the icon, should get executed.

Can anyone help me with this problem?

-Thanks,
Sneha
Re: Problem with toolbar button activation [message #489122 is a reply to message #489003] Thu, 01 October 2009 14:49 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Hi Sneha,

When you say it becomes deactivated do you mean disabled? If so then this
sounds like something that the RCP platform is doing to you, presumably
based on something in your plug-in. You should ask this on the
eclipse.platform.rcp newsgroup, and be sure to provide a way for someone to
reproduce your case. My guess is that it's a bug in your app since I have
not heard of others encountering this problem.

Grant


"sneha" <sneha29@gmail.com> wrote in message
news:ha1o2g$4q7$1@build.eclipse.org...
>
> Hi,
>
> I am developing RCP application. In this I have created a view with
> toolbar. The toolbar contains some items: zoom in, zoom out etc.
> actions are added to the toolbar using the IToolbarManager and IActionBar.
>
> When I click on the zoom in icon, the diagram in my view is zoomed in on
> first click.
> However after that, the toolbar icon becomes deactivated (if we don't
> move the mouse).
> In order to activate the zoom in icon, we need to move the mouse out of
> the icon area and then back on the icon. This activates the icon.
>
> This is not the expected behavior.
> Expected behavior is same as observed for toolbar icons in Eclipse:
> When we click on any toolbar icon, multiple clicks (without moving the
> mouse) should not deactivate the icons and the actions corresponding to
> the icon, should get executed.
>
> Can anyone help me with this problem?
>
> -Thanks,
> Sneha
Previous Topic:column content alignment
Next Topic:SWT Shell Resizing Problem on Linux/GTK
Goto Forum:
  


Current Time: Thu Apr 25 01:40:29 GMT 2024

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

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

Back to the top