Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 211696 - CLabel does not specify that "&" introduces mnemonic
Summary: CLabel does not specify that "&" introduces mnemonic
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.5 M3   Edit
Assignee: Duong Nguyen CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-02 19:04 EST by Markus Keller CLA
Modified: 2008-10-29 14:16 EDT (History)
3 users (show)

See Also:


Attachments
Fix (7.92 KB, patch)
2008-08-13 14:45 EDT, Markus Keller CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2007-12-02 19:04:42 EST
CLabel#setText(String) does not specify that "&" in the text is interpreted as mnemonic.

Should have a boilerplate like org.eclipse.swt.widgets.Label#setText(String).
Comment 1 Dani Megert CLA 2007-12-03 05:06:13 EST
Same with setToolTipText(String).
Comment 2 Steve Northover CLA 2007-12-05 16:53:09 EST
Please just fix CLabel to have the right documentation.

I'm pretty sure that tooltip does not process "&".
Comment 3 Markus Keller CLA 2007-12-06 04:23:43 EST
> I'm pretty sure that tooltip does not process "&".

See bug 188271. It looks like all platforms now strip out single ampersands in tooltip texts. This should be documented in Control#setToolTipText(String).
Comment 4 Markus Keller CLA 2008-08-13 14:45:28 EDT
Created attachment 109919 [details]
Fix
Comment 5 Markus Keller CLA 2008-09-30 18:26:29 EDT
Wouldn't right now be the perfect time to clarify these Javadocs once and for all? I just had a conflict in Control#setToolTipText()...
Comment 6 Steve Northover CLA 2008-10-01 08:54:38 EDT
YEs.  Duong please fix.
Comment 7 Duong Nguyen CLA 2008-10-02 17:18:51 EDT
Fixed > 081002