Hello Sebastien,
I found a method "StandalonePluginWorkspace.getOptionsStorage()" in the Author API. But could you say me where are store the informations, only in memory, or in a file also ?
The settings which you save are persistent, they are saved on disk when Oxygen is closed together with Oxygen's own internal preferences.
So this would be the API that you need.
Else how can I do that ? Maybe by using the other method "standalonePluginWorkspace.getPreferencesDirectory()"
You can use this method if you want to take full control over the format which is used to save the preferences, if you want to create your own preferences file and save it to Oxygen's preferences directory located in the user home. Probably not necessary in your case.
By the way, if you are saving passwords you can also use our API:
- Code: Select all
ro.sync.exml.workspace.api.util.UtilAccess.encrypt(String)
and
- Code: Select all
ro.sync.exml.workspace.api.util.UtilAccess.decrypt(String)
to encrypt the password before storing it and to decrypt it when retrieving it from the options storage.
Regards,
Radu