Commit 340306e
Tree.java: correctly escape & in default Tooltip
This fixes eclipse-platform/eclipse.platform.ui#1075
When TreeColumn's are too small, a ToolTip is displayed on hover to
reveal the whole Label of an Item (The WIN32-Docs call them 'Inline
ToolTips').
These ToolTips pass through the Composite-ToolTipText-generator which
escapes all & in a Text - allowing to reuse Text from Buttons as
Tooltips. This is a well documented Feature of setToolTipText.
Since TreeItem's Label does not have Mnemonics, we do not assume that the
& needs escaping.
This Commit Escapes all & in default Tooltips that are handled by the
default mechanism.1 parent fc94eaf commit 340306e
File tree
1 file changed
+1
-1
lines changed- bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5646 | 5646 | | |
5647 | 5647 | | |
5648 | 5648 | | |
5649 | | - | |
| 5649 | + | |
5650 | 5650 | | |
5651 | 5651 | | |
5652 | 5652 | | |
| |||
0 commit comments