[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[Subclipse-dev] preferenceCustomization is ignored by subclipse

From: Murat Eken <eken.murat_at_gmail.com>
Date: 2007-12-05 14:13:17 CET

Hi there,

I'm trying to get the default values for preferences working, using the
preferenceCustomization (preferences.ini) property in
org.eclipse.core.runtime.products->product extension point, and everything
seems to work except for the subclipse preferences. I wanted the svnkit to
be the default client and added the following
org.tigris.subversion.subclipse.ui/pref_svninterface=svnkit
to my preferences.ini file. Unfortunately, that preference wasn't picked up.
I did a quick debug session and I've noticed that Eclipse initializes the
default scope correctly with the svnkit property from the
preferences.inifile, however, in the start method of the SVNUIPlugin,
the
org.tigris.subversion.subclipse.ui.Preferences.initializePreferences method
overrides this value with its runtime defaults (javahl in this case). AFAIK,
the preferences.ini values should have precedence over the runtime defaults
(see this<http://dev.eclipse.org/viewcvs/index.cgi/platform-core-home/documents/user_settings/plugin_customization.html?view=co>for
the order of things).

Since Eclipse 3.0 you can initialize the runtime defaults using an extension
point (see AbstractPreferenceInitializer) and that will take care of the
precedence stuff. If you'd agree to refactor that, I could give a hand by
sending a patch.

Cheers,

Murat Eken
Received on Wed Dec 5 14:13:23 2007

This is an archived mail posted to the Subclipse Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.