[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: How to store a table in the preference page

Bonkers schrieb:
Hello,

I hava add a new preference page. In this page their is a table. Now I want to add and save the items to the table. How can I store the complete table? IPreferenceStore just can store Strings. But I want to store an object, in this case the table. How can I do this?

Regards Bonkers

you could create a comma separated list from the table..
or xml .. or as usually each table item corresponds to an object.
you could create a method that creates a string of an Object.. and one that creates a String of a list of string ... if you implement this 2 conversions in Both directions then you can store your table.