IExtensionDelta[] deltasOld = event.getExtensionDeltas(IPreferencesConstants.RUNTIME_NAME, org.eclipse.core.runtime.Preferences.PT_PREFERENCES); IExtensionDelta[] deltasNew = event.getExtensionDeltas(IPreferencesConstants.PREFERS_NAME, org.eclipse.core.runtime.Preferences.PT_PREFERENCES);
IExtensionDelta[] deltasOld = event.getExtensionDeltas(IPreferencesConstants.RUNTIME_NAME, IPreferencesConstants.PT_PREFERENCES); IExtensionDelta[] deltasNew = event.getExtensionDeltas(IPreferencesConstants.PREFERS_NAME, IPreferencesConstants.PT_PREFERENCES);
	public void registryChanged(IRegistryChangeEvent event) {		IExtensionDelta[] deltasOld = event.getExtensionDeltas(IPreferencesConstants.RUNTIME_NAME, org.eclipse.core.runtime.Preferences.PT_PREFERENCES);		IExtensionDelta[] deltasNew = event.getExtensionDeltas(IPreferencesConstants.PREFERS_NAME, org.eclipse.core.runtime.Preferences.PT_PREFERENCES);		IExtensionDelta[] deltas = new IExtensionDelta[deltasOld.length + deltasNew.length];		System.arraycopy(deltasOld, 0, deltas, 0, deltasOld.length);		System.arraycopy(deltasNew, 0, deltas, deltasOld.length, deltasNew.length);		if (deltas.length == 0)			return;		// dynamically adjust the registered scopes		for (int i = 0; i < deltas.length; i++) {			IConfigurationElement[] elements = deltas[i].getExtension().getConfigurationElements();			for (int j = 0; j < elements.length; j++) {				switch (deltas[i].getKind()) {					case IExtensionDelta.ADDED :						if (ELEMENT_SCOPE.equalsIgnoreCase(elements[j].getName()))							scopeAdded(elements[j]);						break;					case IExtensionDelta.REMOVED :						String scope = elements[j].getAttribute(ATTRIBUTE_NAME);						if (scope != null)							scopeRemoved(scope);						break;				}			}		}		// initialize the preference modify listeners		modifyListeners = null;	}