Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » DirectoryDialog - get most recent folder
DirectoryDialog - get most recent folder [message #1835655] Wed, 09 December 2020 15:11 Go to next message
Dinko Ivanov is currently offline Dinko IvanovFriend
Messages: 25
Registered: July 2009
Junior Member
Hi,

I notice that when I select a folder using the DirectoryDialog, the selection gets remembered (I supposed by the OS) and when I open the dialog later it points to the last selected location. I'm not setting any filter path programmatically.

My question is - can I get this "remembered" last selected folder somehow in SWT or plain Java?

Thanks!
Dinko
Re: DirectoryDialog - get most recent folder [message #1835771 is a reply to message #1835655] Fri, 11 December 2020 21:33 Go to previous messageGo to next message
Martin J is currently offline Martin JFriend
Messages: 27
Registered: August 2015
Junior Member
This is normal OS behavior. If you use another program and choose a folder, you will get this folder. If you want to avoid this, you need to keep track of the last selected directory in your program!
Re: DirectoryDialog - get most recent folder [message #1835784 is a reply to message #1835771] Sat, 12 December 2020 16:48 Go to previous message
Dinko Ivanov is currently offline Dinko IvanovFriend
Messages: 25
Registered: July 2009
Junior Member
Thanks Martin!

That makes sense. I was wondering if I can get programatically the value, by some native call in SWT. Apparently not: https://stackoverflow.com/a/65220084/1649388

Best Regards,
Dinko
Previous Topic:SWT Menu Frozen on MacOS
Next Topic:SWT EOL versions?
Goto Forum:
  


Current Time: Mon Apr 19 13:23:50 GMT 2021

Powered by FUDForum. Page generated in 0.01949 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top