Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Custom Dialog to open files and folders
Custom Dialog to open files and folders [message #1829949] Tue, 14 July 2020 15:51 Go to next message
Katya Doersam is currently offline Katya DoersamFriend
Messages: 26
Registered: June 2020
Junior Member
I want to be able to be able to click a button to open a window which can open files or folders. I do not want to use DirectoryDialog and FileDialog because then I will have to have a file button and a separate button to get folders. I know I can use JFileChoosers, but I am building an eclipse plugin so I wanted to use SWT. Can anyone point me to source code where this problem is solved? Or at least code which shows you how to make a custom dialog to get a file that can easily be extended to grab folders as well?

Re: Custom Dialog to open files and folders [message #1830058 is a reply to message #1829949] Thu, 16 July 2020 14:04 Go to previous messageGo to next message
Eclipse UserFriend
Take a look at the SWT Snippets.
Re: Custom Dialog to open files and folders [message #1830170 is a reply to message #1830058] Sun, 19 July 2020 02:20 Go to previous message
Martin J is currently offline Martin JFriend
Messages: 50
Registered: August 2015
Member
Try "Tree" widget. It may be suitable to implement your requirement.
Previous Topic:White border around SWT composite Windows
Next Topic:GLib-CRITICAL
Goto Forum:
  


Current Time: Mon May 06 19:58:23 GMT 2024

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

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

Back to the top