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

Bug 332381

Summary: FileDialog does not remember previous directory location.
Product: [Eclipse Project] Platform Reporter: Alex Ignácio da Silva <alexignaciodasilva>
Component: SWTAssignee: Sravan Kumar Lakkimsetti <sravankumarl>
Status: RESOLVED INVALID QA Contact: Bogdan Gheorghe <gheorghe>
Severity: normal    
Priority: P3 CC: gheorghe
Version: 3.6.1   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

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.