Managing RCP app preferences via Oomph? [message #1745504] |
Tue, 11 October 2016 13:42  |
Eclipse User |
|
|
|
Hi,
We have an RCP app that is also installable from our p2 repo. When installed from the repo into another product default preferences in our primary product feature/plugin that affect plugins we depend on but do now own/control (in plugin_customisation.ini) are ignored. That's fine. This is how it works. But we'd like an elegant way of exposing these preferences to the user so that they can choose if they want to apply them or not - just like the Oomph Welcome Questionnaire. Because we think that these preferences are important. They affect the usability of the product.
Would it be possible to use Oomph for this purpose? I note, for instance, that the preference recorder only seems to include a subset of preferences. Most if not all of the preferences we are interested in are not included in this list.
Thanks,
Miles
|
|
|
Re: Managing RCP app preferences via Oomph? [message #1745547 is a reply to message #1745504] |
Wed, 12 October 2016 07:29  |
Eclipse User |
|
|
|
Note that if you open any *.setup file, there are some toolbar buttons specific to the Setup Editor. There's the button to record the preferences; that brings up the preferences dialog and lets you record all changes into the *.setup you have open. The one next to it is Capture Preferences. That shows a complete tree of all instance (workspace-scoped) preferences as they currently are in the instance preference store; if you've visited all preference pages at least once (using the little light bulb on the preferences page), this should be a complete list of all preferences supported by all plugins currently installed. Anything you want to set into the preference store should be in this list, and you can use this dialog to record them as preference tasks.
Your application could record all these things into a *.setup file, it could prompt the user however you want to design such a prompt, and if the user approves, you could copy them all into the workspace.setup (Navigate -> Open Setup -> Workspace) and (somehow) do the Perform Setup Tasks... to apply them to the instance preference store.
|
|
|
Powered by
FUDForum. Page generated in 0.22523 seconds