Tabnine Logo
IExtensionRegistry.getExtensionPoints
Code IndexAdd Tabnine to your IDE (free)

How to use
getExtensionPoints
method
in
org.eclipse.core.runtime.IExtensionRegistry

Best Java code snippets using org.eclipse.core.runtime.IExtensionRegistry.getExtensionPoints (Showing top 9 results out of 315)

origin: org.eclipse.pde/org.eclipse.pde.runtime

@Override
public void initializeExtensionPoints(IProgressMonitor monitor) {
  if (monitor.isCanceled())
    return;
  IExtensionPoint[] extPoints = Platform.getExtensionRegistry().getExtensionPoints();
  ExtensionPoint[] extPts = new ExtensionPoint[extPoints.length];
  for (int i = 0; i < extPoints.length; i++) {
    if (monitor.isCanceled())
      return;
    extPts[i] = createExtensionPointAdapter(extPoints[i]);
  }
  listener.addExtensionPoints(extPts);
}
origin: org.eclipse/org.eclipse.pde.runtime

private Object[] getFolderChildren(Bundle bundle, int id) {
  Object[] array = null;
  String bundleId = bundle.getSymbolicName();
  switch (id) {
    case IBundleFolder.F_EXTENSIONS :
      array = Platform.getExtensionRegistry().getExtensions(bundleId);
      break;
    case IBundleFolder.F_EXTENSION_POINTS :
      array = Platform.getExtensionRegistry().getExtensionPoints(bundleId);
      break;
    case IBundleFolder.F_IMPORTS :
      array = getManifestHeaderArray(bundle, Constants.REQUIRE_BUNDLE);
      break;
    case IBundleFolder.F_LIBRARIES :
      array = getManifestHeaderArray(bundle, Constants.BUNDLE_CLASSPATH);
      break;
  }
  Object[] result = null;
  if (array != null && array.length > 0) {
    result = new Object[array.length];
    for (int i = 0; i < array.length; i++) {
      result[i] = createAdapter(array[i], id);
    }
  }
  return result;
}
public Object getParent(Object element) {
origin: org.eclipse.scout.sdk.deps/org.eclipse.pde.core

public IPluginExtensionPoint[] findExtensionPointsForPlugin(IPluginModelBase base) {
  IContributor contributor = fStrategy.createContributor(base);
  if (contributor == null)
    return new IPluginExtensionPoint[0];
  IExtensionPoint[] extensions = getRegistry().getExtensionPoints(fStrategy.createContributor(base));
  ArrayList<PluginExtensionPoint> list = new ArrayList<>();
  for (int i = 0; i < extensions.length; i++) {
    PluginExtensionPoint point = new PluginExtensionPoint(extensions[i]);
    point.setModel(getExtensionsModel(base));
    point.setParent(base.getExtensions());
    list.add(point);
  }
  return list.toArray(new IPluginExtensionPoint[list.size()]);
}
origin: ops4j/peaberry

synchronized void start(final IExtensionRegistry registry) {
 final IExtensionPoint[] extensionPoints;
 // register listener first to avoid race condition
 if (Object.class == clazz || IConfigurationElement.class == clazz) {
  registry.addListener(this);
  extensionPoints = registry.getExtensionPoints();
 } else {
  registry.addListener(this, point);
  extensionPoints = new IExtensionPoint[]{registry.getExtensionPoint(point)};
 }
 // safety check in case there was no matching extension point
 if (extensionPoints.length == 0 || null == extensionPoints[0]) {
  return;
 }
 final Set<IConfigurationElement> ignore = getExistingConfigurationElements();
 // retrieve any matching extensions for each point
 for (final IExtensionPoint p : extensionPoints) {
  for (final IExtension e : p.getExtensions()) {
   insertExtension(e, ignore);
  }
 }
}
origin: jpox/jpox

/**
 * Acessor for the currently registed ExtensionPoints
 * @return array of ExtensionPoints
 */
public ExtensionPoint[] getExtensionPoints()
{
  IExtensionPoint[] eclipseExPoint = RegistryFactory.getRegistry().getExtensionPoints();
  List elms = new ArrayList();
  for( int i=0; i<eclipseExPoint.length; i++)
  {
    Plugin plugin = new Plugin(eclipseExPoint[i].getContributor().getName(),"","","",null);
    try
    {
      Bundle bundle = Platform.getBundle(eclipseExPoint[i].getContributor().getName());
      ExtensionPoint exPoint = new ExtensionPoint(eclipseExPoint[i].getUniqueIdentifier(),eclipseExPoint[i].getLabel(),bundle.getResource(eclipseExPoint[i].getSchemaReference()),plugin);
      for( int e=0; e<eclipseExPoint[i].getExtensions().length; e++)
      {
        Extension ex = new Extension(exPoint, plugin);
        configurationElement(ex,eclipseExPoint[i].getExtensions()[e].getConfigurationElements(),null);
        exPoint.addExtension(ex);
      }
      elms.add(exPoint);
    }
    catch (InvalidRegistryObjectException e)
    {
      //LOG
    }
  }
  return (ExtensionPoint[]) elms.toArray(new IExtensionPoint[elms.size()]);
}
origin: org.eclipse.platform/org.eclipse.equinox.registry

public void _ns(CommandInterpreter ci) throws Exception {
  String namespace = getArgument(ci);
  if (namespace == null) {
    String[] namespaces = RegistryFactory.getRegistry().getNamespaces();
    ci.println("Namespace(s):"); //$NON-NLS-1$
    ci.println("-------------------"); //$NON-NLS-1$
    for (int i = 0; i < namespaces.length; i++)
      ci.println(namespaces[i]);
    return;
  }
  IExtensionRegistry registry = RegistryFactory.getRegistry();
  IExtensionPoint[] extpts = registry.getExtensionPoints(namespace);
  ci.println("Extension point(s):"); //$NON-NLS-1$
  ci.println("-------------------"); //$NON-NLS-1$
  for (int i = 0; i < extpts.length; i++)
    displayExtensionPoint(extpts[i], ci);
  if (verbose) {
    ci.println("\nExtension(s):"); //$NON-NLS-1$
    ci.println("-------------------"); //$NON-NLS-1$
    IExtension[] exts = RegistryFactory.getRegistry().getExtensions(namespace);
    for (int j = 0; j < exts.length; j++)
      displayExtension(exts[j], ci, true /*full*/);
  }
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.equinox.registry

public void _ns(CommandInterpreter ci) throws Exception {
  String namespace = getArgument(ci);
  if (namespace == null) {
    String[] namespaces = RegistryFactory.getRegistry().getNamespaces();
    ci.println("Namespace(s):"); //$NON-NLS-1$
    ci.println("-------------------"); //$NON-NLS-1$
    for (int i = 0; i < namespaces.length; i++)
      ci.println(namespaces[i]);
    return;
  }
  IExtensionRegistry registry = RegistryFactory.getRegistry();
  IExtensionPoint[] extpts = registry.getExtensionPoints(namespace);
  ci.println("Extension point(s):"); //$NON-NLS-1$
  ci.println("-------------------"); //$NON-NLS-1$
  for (int i = 0; i < extpts.length; i++)
    displayExtensionPoint(extpts[i], ci);
  if (verbose) {
    ci.println("\nExtension(s):"); //$NON-NLS-1$
    ci.println("-------------------"); //$NON-NLS-1$
    IExtension[] exts = RegistryFactory.getRegistry().getExtensions(namespace);
    for (int j = 0; j < exts.length; j++)
      displayExtension(exts[j], ci, true /*full*/);
  }
}
origin: org.eclipse.equinox/registry

public void _ns(CommandInterpreter ci) throws Exception {
  String namespace = getArgument(ci);
  if (namespace == null) {
    String[] namespaces = RegistryFactory.getRegistry().getNamespaces();
    ci.println("Namespace(s):"); //$NON-NLS-1$
    ci.println("-------------------"); //$NON-NLS-1$
    for (int i = 0; i < namespaces.length; i++)
      ci.println(namespaces[i]);
    return;
  }
  IExtensionRegistry registry = RegistryFactory.getRegistry();
  IExtensionPoint[] extpts = registry.getExtensionPoints(namespace);
  ci.println("Extension point(s):"); //$NON-NLS-1$
  ci.println("-------------------"); //$NON-NLS-1$
  for (int i = 0; i < extpts.length; i++)
    displayExtensionPoint(extpts[i], ci);
  if (verbose) {
    ci.println("\nExtension(s):"); //$NON-NLS-1$
    ci.println("-------------------"); //$NON-NLS-1$
    IExtension[] exts = RegistryFactory.getRegistry().getExtensions(namespace);
    for (int j = 0; j < exts.length; j++)
      displayExtension(exts[j], ci, true /*full*/);
  }
}
origin: org.eclipse/equinox-registry

public void _ns(CommandInterpreter ci) throws Exception {
  String namespace = getArgument(ci);
  if (namespace == null) {
    String[] namespaces = RegistryFactory.getRegistry().getNamespaces();
    ci.println("Namespace(s):"); //$NON-NLS-1$
    ci.println("-------------------"); //$NON-NLS-1$
    for (int i = 0; i < namespaces.length; i++)
      ci.println(namespaces[i]);
    return;
  }
  IExtensionRegistry registry = RegistryFactory.getRegistry();
  IExtensionPoint[] extpts = registry.getExtensionPoints(namespace);
  ci.println("Extension point(s):"); //$NON-NLS-1$
  ci.println("-------------------"); //$NON-NLS-1$
  for (int i = 0; i < extpts.length; i++)
    displayExtensionPoint(extpts[i], ci);
  if (verbose) {
    ci.println("\nExtension(s):"); //$NON-NLS-1$
    ci.println("-------------------"); //$NON-NLS-1$
    IExtension[] exts = RegistryFactory.getRegistry().getExtensions(namespace);
    for (int j = 0; j < exts.length; j++)
      displayExtension(exts[j], ci, true /*full*/);
  }
}
org.eclipse.core.runtimeIExtensionRegistrygetExtensionPoints

Javadoc

Returns all extension points known to this extension registry. Returns an empty array if there are no extension points.

Popular methods of IExtensionRegistry

  • getExtensionPoint
    Returns the extension point in this extension registry with the given namespace and extension point
  • getConfigurationElementsFor
    Returns all configuration elements from the identified extension. Returns an empty array if the exte
  • addRegistryChangeListener
    Note: for new implementations consider using #addListener(IRegistryEventListener,String). Adds the g
  • removeRegistryChangeListener
    Removes the given registry change listener from this registry. Has no effect if an identical listene
  • addListener
    Adds the given listener for registry change events related to specified extension point. Once regist
  • removeListener
    Removes the given registry change listener from this registry. This method has no effect if the list
  • getExtension
    Returns the specified extension in this extension registry, or null if there is no such extension. T
  • addContribution
    Adds to this extension registry an extension point(s), extension(s), or a combination of those descr
  • getExtensions
    Returns all extensions supplied by the contributor, or null if there are no such extensions.
  • stop
    Call this method to properly stop the registry. The method stops registry event processing and write
  • getNamespaces
    Returns all namespaces currently used by extensions and extension points in this registry. Returns a
  • getNamespaces

Popular in Java

  • Reactive rest calls using spring rest template
  • requestLocationUpdates (LocationManager)
  • setRequestProperty (URLConnection)
  • compareTo (BigDecimal)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • BoxLayout (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now