use of org.eclipse.core.runtime.IExtensionPoint in project eclipse-integration-commons by spring-projects.
the class AbstractDashboardPage method readExtensions.
private void readExtensions() {
this.partDescriptors = new ArrayList<PartDescriptor>();
IExtensionRegistry registry = Platform.getExtensionRegistry();
IExtensionPoint extensionPoint = registry.getExtensionPoint(EXTENSION_ID_DASHBOARD);
IExtension[] extensions = extensionPoint.getExtensions();
for (IExtension extension : extensions) {
IConfigurationElement[] elements = extension.getConfigurationElements();
for (IConfigurationElement element : elements) {
if (element.getName().equals(ELEMENT_PART)) {
readPartExtension(element);
}
}
}
}
use of org.eclipse.core.runtime.IExtensionPoint in project webtools.sourceediting by eclipse.
the class CommentElementRegistry method getConfigurations.
public synchronized CommentElementConfiguration[] getConfigurations() {
if (fConfigurations == null) {
IExtensionRegistry registry = Platform.getExtensionRegistry();
IExtensionPoint point = registry.getExtensionPoint(PLUGIN_ID, EXTENSION_POINT_ID);
if (point != null) {
IConfigurationElement[] elements = point.getConfigurationElements();
fConfigurations = new CommentElementConfiguration[elements.length];
for (int i = 0; i < elements.length; i++) {
fConfigurations[i] = new CommentElementConfiguration(elements[i]);
}
}
if (fConfigurations == null) {
fConfigurations = new CommentElementConfiguration[0];
}
}
return fConfigurations;
}
use of org.eclipse.core.runtime.IExtensionPoint in project webtools.sourceediting by eclipse.
the class AnnotationFileRegistryReader method readRegistry.
/**
* read from plugin registry and parse it.
*/
public void readRegistry() {
IExtensionRegistry extensionRegistry = Platform.getExtensionRegistry();
// $NON-NLS-1$
String pluginId = "org.eclipse.wst.xml.core";
IExtensionPoint point = extensionRegistry.getExtensionPoint(pluginId, EXTENSION_POINT_ID);
if (point != null) {
IConfigurationElement[] elements = point.getConfigurationElements();
for (int i = 0; i < elements.length; i++) {
readElement(elements[i]);
}
}
}
use of org.eclipse.core.runtime.IExtensionPoint in project webtools.sourceediting by eclipse.
the class ErrorCustomizationPluginRegistryReader method readRegistry.
/**
* Read from plugin registry for the errorcustomizer extension.
*/
public void readRegistry() {
IExtensionRegistry pluginRegistry = Platform.getExtensionRegistry();
IExtensionPoint point = pluginRegistry.getExtensionPoint(PLUGIN_ID, EXTENSION_POINT_ID);
if (point != null) {
IConfigurationElement[] elements = point.getConfigurationElements();
for (int i = 0; i < elements.length; i++) {
readElement(elements[i]);
}
}
}
use of org.eclipse.core.runtime.IExtensionPoint in project pmd-eclipse-plugin by pmd.
the class RuleSetsExtensionProcessor method process.
/**
* Process the extension point
*/
public void process() throws CoreException {
final IExtensionRegistry registry = Platform.getExtensionRegistry();
final IExtensionPoint extensionPoint = registry.getExtensionPoint(EXTENTION_POINT);
for (IConfigurationElement element : extensionPoint.getConfigurationElements()) {
processExecutableExtension(element);
}
}
Aggregations