Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 332381 - FileDialog does not remember previous directory location.
Summary: FileDialog does not remember previous directory location.
Status: RESOLVED INVALID
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.6.1   Edit
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Sravan Kumar Lakkimsetti CLA
QA Contact: Bogdan Gheorghe CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-11 19:57 EST by Alex Ignácio da Silva CLA
Modified: 2014-01-23 06:37 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Ignácio da Silva CLA 2010-12-11 19:57:54 EST
Build Identifier: 20100917-0705

When opening a new FileDialog (either as an open or save dialog) it would be nice if it could remember the previously chosen directory.

This is indeed what happens on Windows XP, but not on Linux Ubuntu 10.04. I don't know if this is an issue with GTK, but anyway the SWT implementation could provide this behavior. This is indeed the behavior implemented in several Linux applications, such as gedit.

Reproducible: Always
Comment 1 Bogdan Gheorghe CLA 2011-02-22 14:18:46 EST
Arun, see what we can do here.
Comment 2 Arun Thondapu CLA 2013-12-16 10:34:31 EST
This was indeed a GTK issue and it has been fixed for a while now - https://mail.gnome.org/archives/commits-list/2011-April/msg07089.html

Sravan, can you please verify this on your Linux setup and close the bug as RESOLVED, INVALID after confirming the GTK fix works with Eclipse/SWT as expected? Thanks!
Comment 3 Sravan Kumar Lakkimsetti CLA 2014-01-23 06:37:10 EST
(In reply to Arun Thondapu from comment #2)
> This was indeed a GTK issue and it has been fixed for a while now -
> https://mail.gnome.org/archives/commits-list/2011-April/msg07089.html
> 
> Sravan, can you please verify this on your Linux setup and close the bug as
> RESOLVED, INVALID after confirming the GTK fix works with Eclipse/SWT as
> expected? Thanks!

Open dialog does remembers the last directory. In case of Save dialog if the resource is a project resource it works file. 

If the resource is not a project resource and the user is using the save dialog then you may not get the last used directory. Instead user has to select recent on the lefthand side. to get the last used directory. Since this is very rarely used we feel this can be ignored.