Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Tooltip on a button from view`s actionbar
Tooltip on a button from view`s actionbar [message #448377] Mon, 24 April 2006 08:34
Eclipse UserFriend
Hello,

I need very special feature. When user mouse over a disabled button on
an actionbar, I need to display tooltip with the reason (of the
disabled state). I have two problems:

I add the buttons via actions:

private void fillToolbar() {
IToolBarManager tbm = getViewSite().getActionBars().
getToolBarManager();

executeAction = new ExecuteAction(this);
executeAction.setEnabled(false);
tbm.add(executeAction);
}

How to get the reference to the button widget (to add mouse listener)?

I need to display the tooltip myself because disabled buttons is not
showing its tooltip. My second questions is:

How to display a tooltip of a particular position and size?

Thank you in advance for helping me out.

--
Best regards,
Lukas Zapletal
Previous Topic:Overriding language selection
Next Topic:JFace Databinding Example
Goto Forum:
  


Current Time: Fri Jun 20 10:54:48 EDT 2025

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

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

Back to the top