Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

E4/EAS/Extension Registry

< E4‎ | EAS

The extension registry is a means for bundles to register and access extension points.

Eclipse 3.x API

The existing IExtensionRegistry can currently either be retrieved directly via a static method (Platform.getExtensionRegistry()) or queried through via OSGi as a service.

e4 (Java)

The extension registry can be easily queried for by asking the Eclipse context.

private IExtensionRegistry getRegistry(IEclipseContext context) {
  return (IExtensionRegistry) context.get(IExtensionRegistry.class.getName());
}

Copyright © Eclipse Foundation, Inc. All Rights Reserved.