| Summary: | [Tooltip] - Filter out & | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Stefan Milchram <stefan.milchram> | ||||
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | Flags: | rsternberg:
review+
|
||||
| Version: | 2.1 | ||||||
| Target Milestone: | 2.2 M1 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | sr211 | ||||||
| Attachments: |
|
||||||
Created attachment 233865 [details]
snippet containing rap and swt examples
Same in GTK. Fixed in master with commit f14ba7341626e12d0b986f877be3ee2257841836. Marked for back-porting to 2.1 maintenance branch. +1 to backport this fix to SR 2.1.1 Backported to 2.1-maintenance branch with commit 912122cfe6502c438de950be68fffa2fbd1f57c6. |
When calling: "button.setText("&Hello World");" the & is filtered out for display, as it marks the mnemonic. But if you set the same text as tooltip: "button.setToolTipText("&Hello World");" the & is displayed. In SWT (Windows, i couldn't check GTK) method "org.eclipse.swt.widgets.ToolBar.toolTipText(NMTTDISPINFO)" returns the tooltip containing & but Windows filters it out for display