Bug 435750 - [ToolItem] Tooltip does not appear on disabled action
Summary: [ToolItem] Tooltip does not appear on disabled action
Status: ASSIGNED
Alias: None
Product: RAP
Classification: RT
Component: JFace (show other bugs)
Version: 2.2   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-26 04:54 EDT by Missing name CLA
Modified: 2023-10-23 05:49 EDT (History)
4 users (show)

See Also:


Attachments
Tooltip shown in RCP (34.03 KB, image/png)
2014-05-26 04:54 EDT, Missing name CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Missing name CLA 2014-05-26 04:54:04 EDT
Created attachment 243477 [details]
Tooltip shown in RCP

We are currently migrating from RAP 1.5.1 to RAP 2.x. We discovered, that the tooltips on the disabled actions in our toolbar do not appear, while the tooltips on enabled actions do appear. Tooltips on disabled actions worked together with RAP 1.5 (and with RAP 1.3, which we used before).

I tested the behaviour with RAP 2.0, 2.1, 2.2 and 2.3 RC1 and none of them shows the tooltip.

To get a short impression just compare the save action in an Eclipse RCP toolbar with the one from the RAP Workbench Demo (http://rap.eclipsesource.com/demo/release/workbenchdemo/workbench).
Comment 1 Ivan Furnadjiev CLA 2014-05-26 07:26:37 EDT
Usually, disabled widgets do not show tooltips - Buttons/Combo for example. Same is valid for disabled ToolBar, but not for disabled ToolItem. The call to EventHandler.js#_onmouseevent_special_post is surrounded with widget (target) enablement check, which is missing in RAP prior 2.0.
To fix this issue we need a special handling for (at least) ToolItem.
Comment 2 Sebastian Fuchs CLA 2023-10-23 05:49:58 EDT
Is there any Plan to change the current behaviour?
The typical use case is to give the user an information, WHY the ToolItem is disabled.