Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Toolbar Buttons and MouseMoveListening
Toolbar Buttons and MouseMoveListening [message #438227] Thu, 17 June 2004 12:47 Go to next message
Eclipse UserFriend
My application is a pluging with a view and a toolbar.
I have an ActionDelegate class implements IViewActionDelegate and already
listens to push event of the buttons on the plugin toolbar.
How can I make ActionDelegate class listens to MouseMove over the toolbar
buttons?
Or, which class must the ActionDelegate class implement to listen to
MouseMove over the toolbar buttons?
In short I need a way to detect when mouse is over the toolbar buttons.
Is this some thing possible?
It does not seem any IAction methods or constants are available to detect
the action type.

Thanks.........
Re: Toolbar Buttons and MouseMoveListening [message #438276 is a reply to message #438227] Fri, 18 June 2004 17:11 Go to previous messageGo to next message
Eclipse UserFriend
Use ToolItem.getBounds() to see whether the mouse is inside.

"Selim Yucel" <selimyucel@yahoo.com> wrote in message
news:cashud$ppm$1@eclipse.org...
> My application is a pluging with a view and a toolbar.
> I have an ActionDelegate class implements IViewActionDelegate and already
> listens to push event of the buttons on the plugin toolbar.
> How can I make ActionDelegate class listens to MouseMove over the toolbar
> buttons?
> Or, which class must the ActionDelegate class implement to listen to
> MouseMove over the toolbar buttons?
> In short I need a way to detect when mouse is over the toolbar buttons.
> Is this some thing possible?
> It does not seem any IAction methods or constants are available to detect
> the action type.
>
> Thanks.........
>
>
ASKING IN ANOTHER WAY [message #438277 is a reply to message #438227] Fri, 18 June 2004 17:11 Go to previous messageGo to next message
Eclipse UserFriend
Can I set the back ground color of the tool bar of my application which is
a PDE View?

I will deeply appreciate an answer atleast a YES or NO..
Thanks in advance.


Selim Yucel wrote:

> My application is a pluging with a view and a toolbar.
> I have an ActionDelegate class implements IViewActionDelegate and already
> listens to push event of the buttons on the plugin toolbar.
> How can I make ActionDelegate class listens to MouseMove over the toolbar
> buttons?
> Or, which class must the ActionDelegate class implement to listen to
> MouseMove over the toolbar buttons?
> In short I need a way to detect when mouse is over the toolbar buttons.
> Is this some thing possible?
> It does not seem any IAction methods or constants are available to detect
> the action type.

> Thanks.........
Re: Toolbar Buttons and MouseMoveListening [message #438280 is a reply to message #438276] Fri, 18 June 2004 17:30 Go to previous messageGo to next message
Eclipse UserFriend
I am trying to reach the tool bar in my PDE View application by:

IActionBars bars = getViewSite().getActionBars();
IContributionItem[] c=bars.getToolBarManager().getItems();
....
....
and eventually I get four toolbars, but there is no way to register any
listener or so..

How can I reach the tool bar?




Steve Northover wrote:

> Use ToolItem.getBounds() to see whether the mouse is inside.

> "Selim Yucel" <selimyucel@yahoo.com> wrote in message
> news:cashud$ppm$1@eclipse.org...
> > My application is a pluging with a view and a toolbar.
> > I have an ActionDelegate class implements IViewActionDelegate and already
> > listens to push event of the buttons on the plugin toolbar.
> > How can I make ActionDelegate class listens to MouseMove over the toolbar
> > buttons?
> > Or, which class must the ActionDelegate class implement to listen to
> > MouseMove over the toolbar buttons?
> > In short I need a way to detect when mouse is over the toolbar buttons.
> > Is this some thing possible?
> > It does not seem any IAction methods or constants are available to detect
> > the action type.
> >
> > Thanks.........
> >
> >
Re: Toolbar Buttons and MouseMoveListening [message #438281 is a reply to message #438280] Fri, 18 June 2004 17:36 Go to previous messageGo to next message
Eclipse UserFriend
Selim Yucel wrote:
Sorry for the mistake, I use:
Control[] cont=getViewSite().getShell().getChildren();

Not:
> IActionBars bars = getViewSite().getActionBars();
> IContributionItem[] c=bars.getToolBarManager().getItems();




> I am trying to reach the tool bar in my PDE View application by:

> IActionBars bars = getViewSite().getActionBars();
> IContributionItem[] c=bars.getToolBarManager().getItems();
> ....
> ....
> and eventually I get four toolbars, but there is no way to register any
> listener or so..

> How can I reach the tool bar?




> Steve Northover wrote:

> > Use ToolItem.getBounds() to see whether the mouse is inside.

> > "Selim Yucel" <selimyucel@yahoo.com> wrote in message
> > news:cashud$ppm$1@eclipse.org...
> > > My application is a pluging with a view and a toolbar.
> > > I have an ActionDelegate class implements IViewActionDelegate and already
> > > listens to push event of the buttons on the plugin toolbar.
> > > How can I make ActionDelegate class listens to MouseMove over the toolbar
> > > buttons?
> > > Or, which class must the ActionDelegate class implement to listen to
> > > MouseMove over the toolbar buttons?
> > > In short I need a way to detect when mouse is over the toolbar buttons.
> > > Is this some thing possible?
> > > It does not seem any IAction methods or constants are available to detect
> > > the action type.
> > >
> > > Thanks.........
> > >
> > >
Re: ASKING IN ANOTHER WAY [message #438302 is a reply to message #438277] Mon, 21 June 2004 09:06 Go to previous message
Eclipse UserFriend
Ask this on eclipse.platform. This is the SWT newsgroup. The classes you
are talking about are not part of SWT.

"Selim Yucel" <selimyucel@yahoo.com> wrote in message
news:cavlq8$n97$1@eclipse.org...
> Can I set the back ground color of the tool bar of my application which is
> a PDE View?
>
> I will deeply appreciate an answer atleast a YES or NO..
> Thanks in advance.
>
>
> Selim Yucel wrote:
>
> > My application is a pluging with a view and a toolbar.
> > I have an ActionDelegate class implements IViewActionDelegate and
already
> > listens to push event of the buttons on the plugin toolbar.
> > How can I make ActionDelegate class listens to MouseMove over the
toolbar
> > buttons?
> > Or, which class must the ActionDelegate class implement to listen to
> > MouseMove over the toolbar buttons?
> > In short I need a way to detect when mouse is over the toolbar buttons.
> > Is this some thing possible?
> > It does not seem any IAction methods or constants are available to
detect
> > the action type.
>
> > Thanks.........
>
>
Previous Topic:vertically center text in label
Next Topic:"drawLine" in a eclipse View
Goto Forum:
  


Current Time: Fri Jul 11 20:05:58 EDT 2025

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

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

Back to the top