Tooltip on a button from view`s actionbar [message #448377] |
Mon, 24 April 2006 08:34 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.04965 seconds