On 12/13/2011 04:47 PM, Philippe Nobili wrote: > >> For now, we have no idea on what would be this new more convenient and >> more powerful facility but we'll think about it.
We did that. > > Many thanks; actually the current mechanism works quite well, a very > small improvement would be fairly sufficient in our opinion. > > For your information, this is how we proceed when loading addons in XXE > in order to package it for our end-users: (afterwards, they can still > install addons of their own if they need to) > > 1. Set the addon installation location to be the XXE distribution > directory (requires the appropriate write permissions). > 2. Download/install the selected addons > 3. Reset the addons installation location to the default one > 4. Exit XXE > > We had in mind the exact same behavior for preferences: > > 1. Switch the preferences saving option to "Shared preferences" / > "Global preferences" whatever you call it. This requires appropriate > write permission to XXE installation directory. > 2. Set whatever global/shared preferences are needed > 3. Switch back the preferences saving option to "Personal"/"Local" > 4. Exit XXE It would not work this way. Add-ons and user preferences are in essence completely different. > > Just reading a preference file from XXE distribution upon startup (no > need give end-users any control on this file's name) before applying the > current loading scheme would then be sufficient to obtain the desired > effect. Unfortunately no, because if you look at preferences.properties, you'll see that XXE tends to write a large number, if not all, preference key/value pairs, whether the user has explicitly changed them or not. In consequence, given the current implementation, the ``system'' preferences would be systematically overridden by the user's preferences. More info below. > > Anyway, this is just a suggestion there might be others, more > sophisticated, mechanisms but this simple one would completely suit us. > After looking at the implementation of user preferences in XXE, we have found that there is no way to let the integrator/system administrator reliably specify user preference defaults without a complete rewrite of this component. Therefore, we are sorry but we won't implement your request for enhancement. Also note that we'll probably remove the support of the XXE_USER_PREFERENCES environment variable (http://www.xmlmind.com/xmleditor/_distrib/doc/help/environment_variables.html). The rationale is that this feature has been requested by a single customer and we absolutely do not remember (nor find in our archives) what it could be useful for or why we have accepted to implement it. -- XMLmind XML Editor Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xmleditor-support

