Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Managing RCP app preferences via Oomph?
Managing RCP app preferences via Oomph? [message #1745504] Tue, 11 October 2016 17:42 Go to next message
Miles Daffin is currently offline Miles DaffinFriend
Messages: 3
Registered: October 2016
Location: United Kingdom
Junior Member
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 11:29 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
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.


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Eclipse installer for Windows 64 bit fails to load custom org.eclipse.setup file
Next Topic:Relative URIs for redirected catalogs
Goto Forum:
  


Current Time: Fri Mar 29 11:58:52 GMT 2024

Powered by FUDForum. Page generated in 0.07035 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top