E4/EAS/Extension Registry

From Eclipsepedia

< E4 | EAS
Jump to: navigation, search

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 © 2009 The Eclipse Foundation. All Rights Reserved

  • This page was last modified 19:39, 23 October 2009 by Remy Suen.
Personal tools