Bug 258493 - [Dialogs] Ampersand in path not rendered in Open Resource dialog
Summary: [Dialogs] Ampersand in path not rendered in Open Resource dialog
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.6 M2   Edit
Assignee: Boris Bokowski CLA
QA Contact:
URL:
Whiteboard:
Keywords: bugday, helpwanted
Depends on:
Blocks:
 
Reported: 2008-12-11 12:10 EST by John Arthorne CLA
Modified: 2009-08-31 15:08 EDT (History)
1 user (show)

See Also:


Attachments
Screen shot (28.63 KB, image/png)
2008-12-11 12:10 EST, John Arthorne CLA
no flags Details
Patch for FilteredItemsSelectionDialog (1.86 KB, patch)
2009-08-29 13:52 EDT, Simon Muschel CLA
bokowski: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.