BundleContext context = Activator.getContext(); ServiceTracker registryTracker = new ServiceTracker(context, IExtensionRegistry.class.getName(), null); registryTracker.open(true); if (registryTracker != null) { registry = (IExtensionRegistry) registryTracker.getService(); registry.addRegistryChangeListener(this); registryTracker.close(); } else RuntimeLog.log(new Status(IStatus.ERROR, RegistryMessages.OWNER_NAME, 0, RegistryMessages.registry_no_default, null));
this(RegistryFactory.getRegistry());
	public ExtensionTracker() {		BundleContext context = Activator.getContext();		ServiceTracker registryTracker = new ServiceTracker(context, IExtensionRegistry.class.getName(), null);		registryTracker.open(true); // TODO check if argument is necessary		if (registryTracker != null) {			registry = (IExtensionRegistry) registryTracker.getService();			registry.addRegistryChangeListener(this);			registryTracker.close();		} else			RuntimeLog.log(new Status(IStatus.ERROR, RegistryMessages.OWNER_NAME, 0, RegistryMessages.registry_no_default, null));	}