Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » How to use preference recorder?
How to use preference recorder? [message #1836022] Fri, 18 December 2020 12:45 Go to next message
Marek Andreansky is currently offline Marek AndreanskyFriend
Messages: 9
Registered: October 2020
Junior Member
I tried using it, but can't wrap my head around how it works.

I recorded the settings on one workspaces, and my expectation was that the same settings would be applied to other workspaces as well when I opened them.

Essentially having one master configuration for all workspaces. (having dark mode set as default for all workspaces, new and old was the main driver).

But it does not seem to work that way.

What are the steps to setting up one master config?

And can preference recorder be set up to load the configuration from a remote server? I know we can save config on Eclipse servers, but I would prefer using my own storage.
Re: How to use preference recorder? [message #1836028 is a reply to message #1836022] Fri, 18 December 2020 13:57 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 32110
Registered: July 2009
Senior Member
You can use Navigate -> Open Setup -> User. You'll find a task group called "User Preferences". All the information about preferences are recorded under there (as preference tasks) and that file is located in ~/.eclipse/org.eclipse.oomph.setup/user.setup. All IDEs on that machine share this one user.setup. All tasks in that file will be performed when you start any IDE and can be applied to any IDE using Help -> Perform Setup Tasks in that IDE.

If you use Oomph a lot, it's convenient to show the tools items for these things, i.e, Window -> Preference s-> Oomph Setup Tasks -> "Show tool bar contributions." So you can more easily open setups and perform setup tasks...

In principle and practice its possible to factor out tasks into a share file with a macro and include it elsewhere (e.g., in the user.setup)

https://wiki.eclipse.org/Eclipse_Oomph_Authoring#Macros_and_Macro_Expansion_Tasks

That file could be stored direct in Git or located in a local clone of a Git repository so you can commit/pull the changes. You'll want to be careful preferences that contain machine-specific locations that change from machine to machine...

Note that you can record/capture preference into a specific resource via the toolbar button ("Record Preferences / Capture Preferences") when that resource is open, and you can use the context menu to open a reference object in its own editor.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: How to use preference recorder? [message #1836060 is a reply to message #1836028] Sat, 19 December 2020 11:56 Go to previous messageGo to next message
Marek Andreansky is currently offline Marek AndreanskyFriend
Messages: 9
Registered: October 2020
Junior Member
Thanks Ed,
can you explain how tasks and macros can be used? I am a bit overwhelmed when looking at the options

I wanted to centralize configuration for myself, which I did thanks to your tips. I can set up a symbolic link and share the files via another tool.

The task section however seems quite impressive. Is it possible to set up task repositories, or a way to share both configuration and automations in teams?

Was thinking of creating a central location, perhaps a git repository, where I could store tasks and macros for other team members to re-use.
Re: How to use preference recorder? [message #1836064 is a reply to message #1836060] Sat, 19 December 2020 14:22 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 32110
Registered: July 2009
Senior Member
I'm not sure specifically what you're asking. It is a lot of information and the documentation could definitely be improved...

One thing you might try is using Navigate -> Open Setup -> Parent Models -> Catalog Index Eclipse and click the "Show all resources" toolbar button. Here you see the entire structure of all resource start from the root index. You can see from the URIs that all this structure comes from various Git repositories; the Index and resources maintained by the Oomph project come from here:

https://git.eclipse.org/c/oomph/org.eclipse.oomph.git/tree/setups

Yes, you can definitely hook in your own Products, Projects and other things via this structure.:

https://wiki.eclipse.org/Eclipse_Oomph_Authoring#Hosting_your_own_index_.2F_catalogs


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: How to use preference recorder? [message #1836065 is a reply to message #1836064] Sat, 19 December 2020 14:54 Go to previous messageGo to next message
Marek Andreansky is currently offline Marek AndreanskyFriend
Messages: 9
Registered: October 2020
Junior Member
Thanks, my goal was to simplify setup by selecting one profile or configuration after Eclipse starts that would load the Eclipse configuration (dark mode on, layout and other tweaks) while also cloning and importing a repository (while asking for credentials from the user that activates the profile) and connecting to GitHub issues of said repository.

Essentially setting up a fully working environment in a few clicks.
Re: How to use preference recorder? [message #1836081 is a reply to message #1836065] Sun, 20 December 2020 06:23 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 32110
Registered: July 2009
Senior Member
There is quite a bit of information on the wiki starting at the root:

https://wiki.eclipse.org/Oomph

If you need to know something specific you will need to ask specific focused questions where I get the sense that you have read what's available and are asking for clarification about some detail; currently I get the sense that you'd like personalized new documentation written from scratch. There are hundreds of examples of what you are trying to do and I've already explained already how you can look at these examples. And not surprisingly, the authoring guide wiki starts with exactly what you are asking about with detailed steps:

https://wiki.eclipse.org/Eclipse_Oomph_Authoring#Creating_a_Setup_Project_Model



Ed Merks
Professional Support: https://www.macromodeling.com/
Re: How to use preference recorder? [message #1836101 is a reply to message #1836081] Mon, 21 December 2020 07:59 Go to previous message
Marek Andreansky is currently offline Marek AndreanskyFriend
Messages: 9
Registered: October 2020
Junior Member
You are right, mostly asking to scope what is possible. Will need to test it out on my own to see the capabilities.

Thanks for all the help Ed, appreciate it. Will do some reading.
Previous Topic:Installer fails
Next Topic:Understanding variable in a setup + installation
Goto Forum:
  


Current Time: Wed Dec 01 22:34:32 GMT 2021

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

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

Back to the top