Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom settings serialization #421

Open
b0c1 opened this issue Jan 26, 2022 · 1 comment
Open

Custom settings serialization #421

b0c1 opened this issue Jan 26, 2022 · 1 comment

Comments

@b0c1
Copy link

b0c1 commented Jan 26, 2022

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?

@VirtualTim
Copy link
Contributor

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....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants