1 11 package org.eclipse.core.internal.net; 12 13 import org.eclipse.core.runtime.preferences.IEclipsePreferences; 14 import org.osgi.service.prefs.BackingStoreException; 15 16 public class PreferenceModifyListener extends 17 org.eclipse.core.runtime.preferences.PreferenceModifyListener { 18 19 public PreferenceModifyListener() { 20 } 22 23 public IEclipsePreferences preApply(IEclipsePreferences node) { 24 try { 25 if (node.nodeExists("instance")) { ((ProxyManager)ProxyManager.getProxyManager()).migrateUpdateHttpProxy(node.node("instance"), false); } 28 } catch (BackingStoreException e) { 29 Activator.logError("Could not access instance preferences", e); } 31 return super.preApply(node); 32 } 33 34 } 35 | Popular Tags |