Bug 258493

Summary: [Dialogs] Ampersand in path not rendered in Open Resource dialog
Product: [Eclipse Project] Platform Reporter: John Arthorne <john.arthorne>
Component: UIAssignee: Boris Bokowski <bokowski>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: remy.suen
Version: 3.5Keywords: bugday, helpwanted
Target Milestone: 3.6 M2   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Screen shot
none
Patch for FilteredItemsSelectionDialog bokowski: iplog+

Description John Arthorne CLA 2008-12-11 12:10:06 EST
Build: I20081210-0800

If you have a folder containing an ampersand ('&') character, it is not shown in the path in the open resource dialog. See screen shot for an example.
Comment 1 John Arthorne CLA 2008-12-11 12:10:27 EST
Created attachment 120221 [details]
Screen shot
Comment 2 Paul Webster CLA 2008-12-12 11:09:13 EST
org.eclipse.ui.dialogs.FilteredItemsSelectionDialog.DetailsContentViewer simply sets the text to the label ... in other places we escape '&'

PW
Comment 3 John Arthorne CLA 2008-12-12 11:33:25 EST
Sounds like an ideal bugday bug.
Comment 4 Simon Muschel CLA 2009-08-29 13:52:06 EDT
Created attachment 145999 [details]
Patch for FilteredItemsSelectionDialog

This patch adds the necessary escaping of ampersands. With this change the given example works for me.
Comment 5 Boris Bokowski CLA 2009-08-31 15:08:41 EDT
Thanks for the patch! Released to HEAD.