Help, usage of IPreferenceStore vs IDialogSettings [message #121730] |
Wed, 03 September 2003 02:19  |
Eclipse User |
|
|
|
Originally posted by: gentijo.eyecatching.com
In my plugin, I need to store information describing
a list of JDBC connections. i.e.
Connection1
Driver=
URL=
User=
Passwd=
Connection2
...
...
Using the IPreferenceStore it seems difficult at best since it
only allows a flat name/value pair. I was playing around with
the idea of using a mini XML document that would be serialized
into a single preference setting, where the default would be
an empty document.
In the developers guide to Eclipse, at the end of the Preference
examples, there is a real quick blurb on DialogSettings which seems
to be more applicable for Wizard Dialogs but it also has the
functionality to create depth with sections.
Is it applicable to use the DialogSettings to store preferences ??
What is the difference ??
TIA
John G
|
|
|
Re: Help, usage of IPreferenceStore vs IDialogSettings [message #122676 is a reply to message #121730] |
Thu, 04 September 2003 09:54  |
Eclipse User |
|
|
|
Originally posted by: christopher.ideadesigners.com
John Gentilin wrote:
> Using the IPreferenceStore it seems difficult at best since it
> only allows a flat name/value pair. I was playing around with
> the idea of using a mini XML document that would be serialized
> into a single preference setting, where the default would be
> an empty document.
I am trying to develop an identical requirement at the moment. However,
I *have* used the preference store of the plugin to hold the database
JDBC connection detail. I was wondering why you felt that this requires
more than a name/value pair to store it?
BTH one source of code I found useful was in the CVS View for Quantum
the Eclipse SQL explorer plugin at Sourceforge.net. They appear to store
connection detail as bookmarks using a node structure to traverse the
store information. Perhaps this may be what you are looking for.
Chris
|
|
|
Powered by
FUDForum. Page generated in 0.04407 seconds