Hello,i´ve got a composite application, the user is allowed to ‘move/close components’.
Therefor some kind of ‘reset display settings to default’ is needed, like ‘Reset perspective’ in Eclipse.
After some try-and-error i realized that these setting data is stored in the file …org.eclipse.core.runtime/.settings/org.eclipse.ui.workbench.prefs.
Closing Notes and deleting the ‘right’ line in this file works (it resets the user’s modifications) but leads to some errors if this CA was open while Notes was closed.
Next i tried a plugin:
Open this preference store, get and print the desired entry (to check if its the right: yes) and call method .setToDefault
Notes simply ignored this and did not reset anything.
Next thing i would try (haven´t yet) is to read and modify this preference entry, meaning to ‘write down’ the default setting and restore ‘manually’, and look if Notes accepts this change without (hopefully) or at least with a client restart.
Anyway, this has the sweet taste of ‘hacking’ this configuration.
So my question is, if there is a better way to reset the ‘perspective’ of a composite application.
Thank you for your help.