PreferencesFX icon indicating copy to clipboard operation
PreferencesFX copied to clipboard

Custom settings serialization

Open b0c1 opened this issue 3 years ago • 1 comments

Hi guys,

I tried to create a custom editor with a custom list of objects but the saving is failed, because the max length of the serialized data is 8*1024. The StorageHandlerImpl did not serialize each item in the list separated, so it handles the whole list.

Any idea how can I handle this?

b0c1 avatar Jan 26 '22 10:01 b0c1

You can implement your own StorageHandler, I believe you can even extend StorageHandlerImpl. Then you could re-implement saveObject.

To use this use PreferencesFx.of(new MyStorageHandler(), Category.of....

VirtualTim avatar Aug 29 '22 09:08 VirtualTim