Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How to present files to a user in a plug-in
How to present files to a user in a plug-in [message #334665] Mon, 23 February 2009 17:53 Go to next message
Eclipse UserFriend
I've written a plug-in and added a directory that has several xml files
in it. Can I use FileDialog to present a list to the user to access the
files in the plug-in? If so, how do I go about coding it?
Ray
Re: How to present files to a user in a plug-in [message #334668 is a reply to message #334665] Tue, 24 February 2009 01:46 Go to previous messageGo to next message
Eclipse UserFriend
If you package your plugin as a jar, FileDialog won't help. Otherwise you
can get the installed location of a plugin and use the FileDialog. My
suggestion would be not to use the FileDialog and use a custom selection
dialog, which displays the list of file names and upon selection, try to use
FileLocator.find()

- Prakash

--

http://blog.eclipse-tips.com
"Ray Hurst" <rhurst2@cox.net> wrote in message
news:gnv9do$q80$1@build.eclipse.org...
> I've written a plug-in and added a directory that has several xml files in
> it. Can I use FileDialog to present a list to the user to access the files
> in the plug-in? If so, how do I go about coding it?
> Ray
Re: How to present files to a user in a plug-in [message #334688 is a reply to message #334665] Tue, 24 February 2009 16:47 Go to previous message
Eclipse UserFriend
Maybe it would be better to re-phrase my question.

I have several xml files that I need to have for my program. Also, users
can create new xml files to add to there collection.

How should I package these files?

Ray
Previous Topic:JFace Dialog...carriage return in Text widget...Button event sent from Display.readAndDispatch() on
Next Topic:Ganymede deadlock after download "content.jar"
Goto Forum:
  


Current Time: Mon Mar 24 10:19:08 EDT 2025

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

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

Back to the top