Looking for Global Options file in default state

Oxygen general issues.
yvesforkl
Posts: 18
Joined: Wed May 07, 2008 1:25 pm

Looking for Global Options file in default state

Post by yvesforkl »

Hi,

we want to provide a a group of users with a common configuration in Oxygen. After comparing the different strategies that Oxygen offers to this end, we opted for the preparation of a Global Options file that these users will import.

I know how to set the options via the Preferences Menu before exporting the Options file.

Unfortunately, for some reason I am unable to start with a fresh install before setting the desired options (the reasonable and recommended way). Instead, I had to start with the options of my "polluted" installation and cleansed the exported XML afterwards.

However, to make sure it does not contain any more undesired stuff, I would like to compare the content of that file against the "blank slate" of an Options file that does not have any modified preferences.

How could I get hold of such a "default state" Options file without actually having to install and run Oxygen?

I downloaded the .tar.gz package and looked in it for a file named like oxyOptionsSa27.1.xml that I found in my user preferences directory, but could not find it.

Any help is much appreciated.
Yves
Radu
Posts: 9434
Joined: Fri Jul 09, 2004 5:18 pm

Re: Looking for Global Options file in default state

Post by Radu »

Hi Yves,

There is no "defaultOptions.xml" file bundled conveniently inside an Oxygen installation.
When inside the Oxygen code there is a request for a setting's value, there is indeed a default value associated to the setting but it's kept mapped in a compiled Java file so this is not something you could access or use.
In the Oxygen main menu "Options" you have actions to export the global options and also reset the global options if you want to start fresh. And indeed once you start changing option values, the "oxyOptionsSa27.1.xml" from your "com.oxygenxml" folder placed in the user home folder will start containing the changed non-default values.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
yvesforkl
Posts: 18
Joined: Wed May 07, 2008 1:25 pm

Re: Looking for Global Options file in default state

Post by yvesforkl »

Hi Radu,
thank you very much.
Would you consider the following approach to be safe, both in terms of A) not loosing any of my personal settings and B) really starting from a fresh state when crafting a Global Options file for a group of users?
  1. Export Global Options to save my personal settings
  2. Reset Global Options to start fresh
  3. Change Global Options as needed for the group of users
  4. Export Global Options for group of users
  5. Import my saved personal Global Options
(And finally distribute to the group of users the saved Global Options that are meant for them.)

Regards,
Yves
Radu
Posts: 9434
Joined: Fri Jul 09, 2004 5:18 pm

Re: Looking for Global Options file in default state

Post by Radu »

Hi Yves,

Sure, after step 4 (Export Global Options for group of users) you could also do a step 2 (Reset Global Options to start fresh) again.
Or if you want to be more hands on, close Oxygen, identify the "oxyOptionsSa27.1.xml" from your Oxygen's "com.oxygenxml" folder in the user home, backup/save it some place else, then delete it from disk, start Oxygen and it will start clean with all options reset to defaults. Then at a later stage, close Oxygen, copy the backed up "oxyOptionsSa27.1.xml" back to the "com.oxygenxml" folder and start Oxygen.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
yvesforkl
Posts: 18
Joined: Wed May 07, 2008 1:25 pm

Re: Looking for Global Options file in default state

Post by yvesforkl »

Hi Radu,
thank you very much for your precious help.
Regards,
Yves
Post Reply