Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 89726

Summary: [Preferences] Import preference dialog restricts browsing filter to *.epf
Product: [Eclipse Project] Platform Reporter: Susan McCourt <susan>
Component: UIAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: enhancement    
Priority: P3 CC: douglas.pollock, Tod_Creasey
Version: 3.1Keywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Susan McCourt CLA 2005-03-30 17:47:46 EST
M6 candidate - I20050330-0500

I exported my preferences to a file named prefs (no "epf" extension).
When I went to import it, I was hoping I could browse for it, but I could not 
since the import file filter is restricted to *.epf.  To import it, I had to 
go look for it in an explorer, and then type the name into the file name field.

The export file filter is also restricted to *.epf, so many users will 
probably not run into this problem, but if for some reason a different naming 
scheme is chosen, it would be nice to be able to browse on import with a 
choice to use "*.*" as the file filter.  ("*.epf" could still be the default)
Comment 1 Michael Van Meekeren CLA 2005-03-31 09:18:43 EST
Agree, if you type *.* in the file dialog (when opening the file) does this not
reveal all files.
Comment 2 Susan McCourt CLA 2005-03-31 12:06:45 EST
yes, it does work.  For some reason I kept wanting to go to the filters combo 
and pick a "*.*"  At the time it didn't even occur to me to type into the file 
name box.
Comment 3 Maxime Daniel CLA 2005-06-28 10:31:39 EDT
Note that, under Linux, the only way to import a preferences file which name
starts with '.' would be to type in its exact name (extra caveat: do not try to
substitute /home/user by ~), since the browsing dialog (as of I20050627-1435)
presents two filters, '*.epf' and '*.*', none of which picks up
'.eclipse_prefs', for example.
This is specific to unices, which put apart '.*' files (and directories) as
'hidden', in the sense that special options are needed to view them (aka 'ls -a'
for directory listing, 'echo .*' instead of 'echo *', etc.).
It would be nice if the browsing dialog could pick these up. Not sure how much
it should consider adding Linux specific behavior though. The browser I use
combines the 'All files (*)' option with a 'Show hidden files and directories'
checkbox. Notice the non-MSDOS notation for all files (star instead of star dot
star).

Remark 1: I could not get the trick of comment #1 to work for me when trying
'.*'; with or without the leading path, this resulted into a ' Preference file
does not exist or is a directory.' message;
Remark 2: I thought that appending to this bug report would be appropriate, but
if you believe or prefer not, pls feel free to tell me so and I'll open a
separate one.
Comment 4 Michael Van Meekeren CLA 2005-06-29 16:48:15 EDT
cc'ing Doug.  What behaviour does the file dialog on your machine exhibit Doug?
Comment 5 Douglas Pollock CLA 2005-06-30 10:18:28 EDT
Maxime: which version of GTK+ are you using?  Are you using Motif instead?

In most current versions of GTK+ (I believe 2.4.0 and higher), there is the new
GTK+ file chooser dialog.  This dialog allows users to view files that start
with a '.' by right-clicking on the file table and selecting "Show Hidden Files".

The filter defaults to "*.epf", but it is possible to select a "*.*" filter from
the combo.

The real problem here is that the import dialog is stricter than the export
dialog.  If the import dialog will only show *.epf files, then the export dialog
should try to append a ".epf" extension.  In Windows XP applications, this is
usually done for free.  Some examples of the behaviour I would like (what i type
-> what appears on disk)

    prefs -> prefs.epf
    prefs.txt -> prefs.txt.epf
    "prefs.txt" -> prefs.txt
Comment 6 Michael Van Meekeren CLA 2005-06-30 12:19:06 EDT
On my machine Export does append a .epf to files that don't have an extension
already (same as how the zip export works) 
Comment 7 Tod Creasey CLA 2007-03-14 15:24:54 EDT
There is currently no plan to work on this
Comment 8 Denis Roy CLA 2009-08-30 02:15:04 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.