Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 22:53 Go to next message
Ray Hurst is currently offline Ray HurstFriend
Messages: 121
Registered: July 2009
Senior Member
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 06:46 Go to previous messageGo to next message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
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 21:47 Go to previous message
Ray Hurst is currently offline Ray HurstFriend
Messages: 121
Registered: July 2009
Senior Member
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: Tue Jul 16 06:39:48 GMT 2024

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

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

Back to the top