Bug 160740 - [Properties] & inside quoted name is used as the mnemonic in properties title bar
Summary: [Properties] & inside quoted name is used as the mnemonic in properties title...
Status: NEW
Alias: None
Product: GMF-Runtime
Classification: Modeling
Component: General (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal
Target Milestone: 2.1   Edit
Assignee: Anthony Hunter CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-12 15:49 EDT by Li Ding CLA
Modified: 2010-07-19 21:56 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Li Ding CLA 2006-10-12 15:49:08 EDT
My graphical editor shows program resource. The program has quoted name such as "a&&b&c" and the name will also be displayed on properties view title bar. In title bar, & character is used to denote the mnemonic. It shows the name as "a&bc" where c has a underline. The name displays correctly in the diagram main canvas and outline tree view.
Comment 1 Anthony Hunter CLA 2006-10-12 16:43:56 EDT
Is this not your parserProvider returning a string with a mnemonic when asked for getPrintString for your element?
Comment 2 Li Ding CLA 2006-10-12 17:17:44 EDT
My parserProvider does return "a&&b&c". But the same string returns from provider is also used when outline tree view displays the node name.
Comment 3 Anthony Hunter CLA 2006-10-13 08:57:47 EDT
(In reply to comment #2)
> My parserProvider does return "a&&b&c". 

Why is this a bug them?
Comment 4 Li Ding CLA 2006-10-13 09:46:25 EDT
The bug is that the properties title should NOT treat & inside quoted name as mnemonic, ie, it should display the name as "a&&b&c". 

If application code escapes the &, the properties title may display correctly but the node name in outline view will be wrong because both share the same parseProvider.
Comment 5 Anthony Hunter CLA 2006-10-13 10:02:06 EDT
(In reply to comment #4)
> The bug is that the properties title should NOT treat & inside quoted name as
> mnemonic, ie, it should display the name as "a&&b&c". 

Perfect, I get it now.
Comment 6 Anthony Hunter CLA 2007-06-19 11:44:44 EDT
Moving to the next release, GMF 2.1. 
Comment 7 Eclipse Webmaster CLA 2010-07-19 21:56:53 EDT
[GMF Restructure] Bug 319140 : product GMF and component
Runtime was the original product and component for this bug