Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.IExtensionPoint


            return contributedDetectors;
        }
        TreeMap<String, String> set = new TreeMap<String, String>();

        IExtensionRegistry registry = Platform.getExtensionRegistry();
        IExtensionPoint point = registry.getExtensionPoint(EXTENSION_POINT_ID);
        if (point == null) {
            return set;
        }
        IExtension[] extensions = point.getExtensions();
        for (IExtension extension : extensions) {
            IConfigurationElement[] elements = extension.getConfigurationElements();
            for (IConfigurationElement configElt : elements) {
                String libPathAsString;
                String pluginId;
View Full Code Here


    return new IWizardPage[]{};
  }

  private static IExtension[] findExtension(String extensionId) {
    IExtensionRegistry registry = Platform.getExtensionRegistry();
    IExtensionPoint extensionPoint = registry
        .getExtensionPoint(extensionId);
    return extensionPoint.getExtensions();
  }
View Full Code Here

    providers = tmp;
  }

  private static IExtension[] findExtension(String extensionId) {
    IExtensionRegistry registry = Platform.getExtensionRegistry();
    IExtensionPoint extensionPoint = registry
        .getExtensionPoint(extensionId);
    return extensionPoint.getExtensions();
  }
View Full Code Here

    return wc;
  }

  private static IExtension[] findExtension(String extensionId) {
    IExtensionRegistry registry = Platform.getExtensionRegistry();
    IExtensionPoint extensionPoint = registry
        .getExtensionPoint(extensionId);
    return extensionPoint.getExtensions();
  }
View Full Code Here

    // initialize lists - indicates that the initialization happened
    fFragments= new ArrayList(2);
    fPreferences= new ArrayList(2);

    // populate list
    IExtensionPoint extensionPoint= Platform.getExtensionRegistry().getExtensionPoint(EditorsUI.PLUGIN_ID, "markerAnnotationSpecification"); //$NON-NLS-1$
    if (extensionPoint != null) {
      IConfigurationElement[] elements= extensionPoint.getConfigurationElements();
      for (int i= 0; i < elements.length; i++) {
        AnnotationPreference spec= createSpec(elements[i]);
        if (spec != null)
          fFragments.add(spec);
        if (isComplete(spec))
View Full Code Here

   * extension point and remembers those implementers based on the name extensions and the editor input
   * types they are for.
   */
  private void initialize() {

    IExtensionPoint extensionPoint;
    extensionPoint= Platform.getExtensionRegistry().getExtensionPoint(EditorsUI.PLUGIN_ID, "documentProviders"); //$NON-NLS-1$

    if (extensionPoint == null) {
      String msg= NLSUtility.format(TextEditorMessages.DocumentProviderRegistry_error_extension_point_not_found, PlatformUI.PLUGIN_ID);
      Bundle bundle = Platform.getBundle(PlatformUI.PLUGIN_ID);
      ILog log= Platform.getLog(bundle);
      log.log(new Status(IStatus.ERROR, PlatformUI.PLUGIN_ID, IStatus.OK, msg, null));
      return;
    }

    IConfigurationElement[] elements= extensionPoint.getConfigurationElements();
    for (int i= 0; i < elements.length; i++) {
      read(fExtensionMapping, elements[i], "extensions"); //$NON-NLS-1$
      read(fInputTypeMapping, elements[i], "inputTypes"); //$NON-NLS-1$
    }
  }
View Full Code Here

      return fTypeMap;
    }

    private Map readTypes() {
      HashMap allTypes= new HashMap();
      IExtensionPoint point= Platform.getExtensionRegistry().getExtensionPoint(ResourcesPlugin.PI_RESOURCES, ResourcesPlugin.PT_MARKERS);
      if (point != null) {
        IExtension[] extensions = point.getExtensions();
        for (int i= 0; i < extensions.length; i++) {
          IExtension extension= extensions[i];
          ArrayList types= new ArrayList();
          IConfigurationElement[] configElements= extension.getConfigurationElements();
          for (int j= 0; j < configElements.length; ++j) {
View Full Code Here

  }

  private Map readTypes() {
    HashMap allTypes= new HashMap();

    IExtensionPoint extensionPoint= Platform.getExtensionRegistry().getExtensionPoint(EditorsUI.PLUGIN_ID, "annotationTypes"); //$NON-NLS-1$
    if (extensionPoint != null) {
      IConfigurationElement[] elements= extensionPoint.getConfigurationElements();
      for (int i= 0; i < elements.length; i++) {
        IConfigurationElement element= elements[i];

        String name= element.getAttribute("name")//$NON-NLS-1$
        if (name == null || name.trim().length() == 0)
View Full Code Here

   * @param extensionPointName the name of the extension point to read
   * @param typeAttributeName the name of attribute specifying the annotation
   *            type
   */
  private void readExtensionPoint(List annotationTypeMappings, String extensionPointName, String typeAttributeName) {
    IExtensionPoint extensionPoint= Platform.getExtensionRegistry().getExtensionPoint(EditorsUI.PLUGIN_ID, extensionPointName);
    if (extensionPoint != null) {
      IConfigurationElement[] elements= extensionPoint.getConfigurationElements();
      for (int i= 0; i < elements.length; i++) {
        AnnotationTypeMapping mapping= createMapping(elements[i], typeAttributeName);
        if (mapping != null)
          annotationTypeMappings.add(mapping);
      }
View Full Code Here

    // initialize lists - indicates that the initialization happened
    fMarkerUpdaterSpecifications= new ArrayList(2);
    fInstantiatedMarkerUpdaters= new ArrayList(2);

    // populate list
    IExtensionPoint extensionPoint= Platform.getExtensionRegistry().getExtensionPoint(EditorsUI.PLUGIN_ID, "markerUpdaters"); //$NON-NLS-1$
    if (extensionPoint != null) {
      IConfigurationElement[] elements= extensionPoint.getConfigurationElements();
      for (int i= 0; i < elements.length; i++)
        fMarkerUpdaterSpecifications.add(elements[i]);
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.core.runtime.IExtensionPoint

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.