/** * Reads from the plugin registry and parses it. */ public void readRegistry() { final IExtensionPoint point = pluginRegistry.getExtensionPoint(pluginID, extensionPointID); if (point != null) { IConfigurationElement[] elements = point.getConfigurationElements(); for (int i = 0; i < elements.length; i++) { internalReadElement(elements[i], true); } pluginRegistry.addRegistryChangeListener (new IRegistryChangeListener() { public void registryChanged(IRegistryChangeEvent event) { IExtensionDelta[] deltas = event.getExtensionDeltas(); for (int i = 0; i < deltas.length; ++i) { IExtensionDelta delta = deltas[i]; if (point.equals(delta.getExtensionPoint())) { boolean add = delta.getKind() == IExtensionDelta.ADDED; IExtension extension = delta.getExtension(); IConfigurationElement[] configurationElement = extension.getConfigurationElements(); for (int j = 0; j < configurationElement.length; ++j) { internalReadElement(configurationElement[j], add); } } } } }); } }
/** * Reads from the plugin registry and parses it. */ public void readRegistry() { IExtensionPoint point = pluginRegistry.getExtensionPoint(pluginID, extensionPointID); if (point != null) { IConfigurationElement[] elements = point.getConfigurationElements(); for (int i = 0; i < elements.length; i++) { internalReadElement(elements[i], true); } } pluginRegistry.addRegistryChangeListener (new IRegistryChangeListener() { public void registryChanged(IRegistryChangeEvent event) { IExtensionDelta[] deltas = event.getExtensionDeltas(); for (int i = 0; i < deltas.length; ++i) { IExtensionDelta delta = deltas[i]; if (delta.getExtensionPoint().getUniqueIdentifier().equals(qualifiedExtensionPointID)) { boolean add = delta.getKind() == IExtensionDelta.ADDED; IExtension extension = delta.getExtension(); IConfigurationElement[] configurationElement = extension.getConfigurationElements(); for (int j = 0; j < configurationElement.length; ++j) { internalReadElement(configurationElement[j], add); } } } } }); }
public void addRegistryChangeListener( IRegistryChangeListener arg0 ) { throw new UnsupportedOperationException( "addRegistryChangeListener is not implemented yet" ); }
public void addRegistryChangeListener( IRegistryChangeListener listener, String token ) { throw new UnsupportedOperationException( "addRegistryChangeListener is not implemented yet" ); }
public void removeRegistryChangeListener( IRegistryChangeListener listener ) { throw new UnsupportedOperationException( "removeRegistryChangeListener is not implemented yet" ); }