Commit 925be9e
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 d4a3dad commit 925be9e
File tree
1 file changed
+2
-1
lines changed- bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5639 | 5639 | | |
5640 | 5640 | | |
5641 | 5641 | | |
5642 | | - | |
| 5642 | + | |
| 5643 | + | |
5643 | 5644 | | |
5644 | 5645 | | |
5645 | 5646 | | |
| |||
0 commit comments