Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » DirectoryDialog - get most recent folder
DirectoryDialog - get most recent folder [message #1835655] Wed, 09 December 2020 10:11 Go to next message
Eclipse UserFriend
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 16:33 Go to previous messageGo to next message
Eclipse UserFriend
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 11:48 Go to previous message
Eclipse UserFriend
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: Sat Aug 30 20:02:46 EDT 2025

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

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

Back to the top