Source:
public IStatus processChangeEvent(Object[] listenerInfos, final Map<String, ?> scheduledDeltas) { final CombinedEventDelta extendedDelta = (CombinedEventDelta) scheduledDeltas.remove(notNamespace); final MultiStatus result = new MultiStatus(RegistryMessages.OWNER_NAME, IStatus.OK, RegistryMessages.plugin_eventListenerError, null); for (Object listenerInfo2 : listenerInfos) { final ListenerInfo listenerInfo = (ListenerInfo) listenerInfo2; if ((listenerInfo.listener instanceof IRegistryChangeListener) && scheduledDeltas.size() != 0) { if (listenerInfo.filter == null || scheduledDeltas.containsKey(listenerInfo.filter)) { SafeRunner.run(new ISafeRunnable() { @Override public void run() throws Exception { ((IRegistryChangeListener) listenerInfo.listener).registryChanged(new RegistryChangeEvent(scheduledDeltas, listenerInfo.filter)); } @Override public void handleException(Throwable exception) { result.add(new Status(IStatus.ERROR, RegistryMessages.OWNER_NAME, RegistryMessages.plugin_eventListenerError, exception)); } }); } } if (listenerInfo.listener instanceof IRegistryEventListener) { IRegistryEventListener extensionListener = (IRegistryEventListener) listenerInfo.listener; IExtension[] extensions = extendedDelta.getExtensions(listenerInfo.filter); IExtensionPoint[] extensionPoints = extendedDelta.getExtensionPoints(listenerInfo.filter); if (extendedDelta.isAddition()) { if (extensionPoints != null) extensionListener.added(extensionPoints); if (extensions != null) extensionListener.added(extensions); } else { if (extensions != null) extensionListener.removed(extensions); if (extensionPoints != null) extensionListener.removed(extensionPoints); } } } for (Object name : scheduledDeltas.values()) { ((RegistryDelta) name).getObjectManager().close(); } IObjectManager manager = extendedDelta.getObjectManager(); if (manager != null) manager.close(); return result; }

Target:
public IStatus processChangeEvent(Object[] listenerInfos, final Map<String, ?> scheduledDeltas) { final CombinedEventDelta extendedDelta = (CombinedEventDelta) scheduledDeltas.remove(notNamespace); final MultiStatus result = new MultiStatus(RegistryMessages.OWNER_NAME, IStatus.OK, RegistryMessages.plugin_eventListenerError, null); for (Object info : listenerInfos) { final ListenerInfo listenerInfo = (ListenerInfo) info; if ((listenerInfo.listener instanceof IRegistryChangeListener) && scheduledDeltas.size() != 0) { if (listenerInfo.filter == null || scheduledDeltas.containsKey(listenerInfo.filter)) { SafeRunner.run(new ISafeRunnable() { @Override public void run() throws Exception { ((IRegistryChangeListener) listenerInfo.listener).registryChanged(new RegistryChangeEvent(scheduledDeltas, listenerInfo.filter)); } @Override public void handleException(Throwable exception) { result.add(new Status(IStatus.ERROR, RegistryMessages.OWNER_NAME, RegistryMessages.plugin_eventListenerError, exception)); } }); } } if (listenerInfo.listener instanceof IRegistryEventListener) { IRegistryEventListener extensionListener = (IRegistryEventListener) listenerInfo.listener; IExtension[] extensions = extendedDelta.getExtensions(listenerInfo.filter); IExtensionPoint[] extensionPoints = extendedDelta.getExtensionPoints(listenerInfo.filter); if (extendedDelta.isAddition()) { if (extensionPoints != null) extensionListener.added(extensionPoints); if (extensions != null) extensionListener.added(extensions); } else { if (extensions != null) extensionListener.removed(extensions); if (extensionPoints != null) extensionListener.removed(extensionPoints); } } } for (Object delta : scheduledDeltas.values()) { ((RegistryDelta) delta).getObjectManager().close(); } IObjectManager manager = extendedDelta.getObjectManager(); if (manager != null) manager.close(); return result; }