Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsGlobal preferences in 3.4
https://www.eclipse.org/forums/index.php/mv/msg/108042/330277/#msg_330277
Can anyone tell me if it is possible to provide global preferences in 3.4,
i.e. preferences that will apply to *all* workspaces by default? The only
way I could find of doing this in 3.3 was:
1 Configure an install of Eclipse just the way I wanted it
2 Export these preferences (everything)
3 Edit the exported epf file: remove /configuration/ and /instance/
prefixes on each line and remove any lines for stuff we do not want as
defaults (e.g. recnet workspaces)
4 Create an eclipse launch script and use the -plugincustomization arg
to make these edited preferences the default for all workspaces.
Is there a cleaner way of achieving the same thing in 3.4?
Thanks,
Miles]]>Miles Daffin2008-07-24T11:32:49-00:00Re: Global preferences in 3.4
https://www.eclipse.org/forums/index.php/mv/msg/108042/330296/#msg_330296
guess I must be the only person using eclipse 3.4 who would like to be
able to do this :(]]>Miles Daffin2008-07-24T15:44:01-00:00Re: Global preferences in 3.4
https://www.eclipse.org/forums/index.php/mv/msg/108042/330298/#msg_330298
> Oh dear. My question is already slipping down the list into obscurity...
> I guess I must be the only person using eclipse 3.4 who would like to be
> able to do this :(
Hang in there, Miles ... 4 hours is only 1/6 of the world's rotation.
Thanks for the information. Did you see my original description of how I
created a global config definition and then got it to apply to eclipse
instances installed by my script? Can you suggest a better way of
achieving this in 3.4? (I have googled till I'm blue.)
Thanks,
Miles]]>Miles Daffin2008-07-25T09:32:53-00:00Re: Global preferences in 3.4
https://www.eclipse.org/forums/index.php/mv/msg/108042/330403/#msg_330403
>> the configuration "scope" area.
How would one do this? Is there any documentation on this anywhere?
Thanks,
Miles]]>Miles Daffin2008-07-28T11:43:03-00:00Re: Global preferences in 3.4
https://www.eclipse.org/forums/index.php/mv/msg/108042/330426/#msg_330426
>>> I guess the only way is to try packaging them in the configuration
>>> "scope" area.
>
> How would one do this? Is there any documentation on this anywhere?
Configuration level settings are stored in the
eclipse/configuration/.settings directory. creating the appropriate
*.prefs file there will put the preferences at that level. But ...
plugins using the default preference lookup will then pick up those
preferences. But if a plugin uses
org.eclipse.ui.plugin.AbstractUIPlugin.getPreferenceStore(), they'll
only ever see their instance level preferences (since it defaults to
InstanceScope only).
At least your method of using -plugincustomization sets all of the
preferences whether they're instance scope or configuration scope. If
you were providing the product, you can tell eclipse to look for a
plugin_customization.ini file in a provided plugin (much the same way we
provide one in eclipse/plugins/org.eclipse.sdk_3.*)
There was some investigative work done in 3.3 (and possibly more in 3.4)
to consider sharing preferences ... but I don't know how far it got.
Can anyone tell me if the need for global preferences has been considered in 3.5 or is being considered in 3.6? If not shall I raise a bugzilla issue to kick off a proper discussion? (If so then what do I raise it against?)
Thanks,
Miles
----
1. Install eclipse + all the features/plugins you want
2. Configure the preferences in this instance
3. Export the preferences to epf
4. Convert epf to ini file:
* Remove /instance/ and /configuration/ prefixes
* Remove any preferences you do not want applied globally]]>Miles Daffin2009-10-07T18:25:03-00:00Re: Global preferences in 3.4
https://www.eclipse.org/forums/index.php/mv/msg/108042/490898/#msg_490898
In case anyone is interested the task of provinding default global preferences is harder in 3.5. Here is what I had to do.
1. Create a 3.5 default install based on classic with all the features/plugins required by default.
2. Configure this install (Windows > Preferences)
3. Export all preferences to an epf file which is then converted into an ini file that can be applied via at the command line via -plugincustomization: remove the /instance/ and /configuration/ scope prefixes; remove any preferences that we really do not want as global defaults.
When I tested the resulting file using the -plugincustomization command line argument on an unconfigured installation I noticed that some preferences had not been applied: anything under Install/Update and General/Network Connections. It seems that these preferences are persisted in .prefs files in the eclipse install. So I tried copying them from the configured install to the same location in the test install and voila - they were applied.
All this seems pretty inconsistent and could do with looking at. Does anyone know if there is a suitable bugzilla to which I could add some observations? If not I will open one.