Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.IExtensionPoint


    public static IExtension[] getExtensions(String pointName) {

        logger.debug("get extensions: " + pointName);

        IExtensionPoint point = Platform.getExtensionRegistry().getExtensionPoint(pointName);
        logger.trace("point: " + point);

        if(point == null) {
            logger.warn("No extensions found for point: " + pointName);

            // return empty array
            return new IExtension[0];
        }

        IExtension[] exts = point.getExtensions();
        logger.debug("exts = " + exts.length);

        return exts;
    }
View Full Code Here


    public IExtension[] getExtensions(String pointName)
    {
        logger.debug("get extensions: " + pointName);

        IExtensionPoint point = Platform.getExtensionRegistry().getExtensionPoint(pointName);
        logger.trace("point: " + point);

        if(point == null)
        {
            logger.warn("No extensions found for point: " + pointName);

            // return empty array
            return new IExtension[0];
        }

        IExtension[] exts = point.getExtensions();
        logger.debug("exts = " + exts.length);

        return exts;
    }
View Full Code Here

   * read from plugin registry and parse it.
   */
  public void readRegistry()
  {
    IExtensionRegistry pluginRegistry = Platform.getExtensionRegistry();
    IExtensionPoint point = pluginRegistry.getExtensionPoint(PLUGIN_ID, extensionPointId);
    if (point != null)
    {
      IConfigurationElement[] elements = point.getConfigurationElements();
      for (int i = 0; i < elements.length; i++)
      {
        readElement(elements[i]);
      }
    }
View Full Code Here

   * the spedified elements.
   */
  public void readRegistry()
  {
    IExtensionRegistry pluginRegistry = Platform.getExtensionRegistry();
    IExtensionPoint point = pluginRegistry.getExtensionPoint(PLUGIN_ID, extensionPointId);
    if (point != null)
    {
      IConfigurationElement[] elements = point.getConfigurationElements();
      for (int i = 0; i < elements.length; i++)
      {
        readElement(elements[i]);
      }
    }
View Full Code Here

  }

  /* Computes the list of validators by scanning the platform registry. */
  private BaseValidator[] computeValidators() {
      IExtensionRegistry registry = Platform.getExtensionRegistry();
      IExtensionPoint extensionPoint = registry.getExtensionPoint(
              VALIDATOR_EXT_ID);
      IExtension[] extensions;
      if (extensionPoint != null) {
          extensions = extensionPoint.getExtensions();
      } else {
          extensions = new IExtension[0];
      }
      ArrayList results = new ArrayList();
      for (int i = 0; i < extensions.length; i++) {
View Full Code Here

  /* Computes the list of supported TAD versions by scanning the platform
   * registry.  See comment for tadVersions inst var for a description of the
   * return type. */
  private String[][] computeTADVersions() {
      IExtensionRegistry registry = Platform.getExtensionRegistry();
      IExtensionPoint extensionPoint = registry.getExtensionPoint(
              TAD_VERSION_EXT_ID);
      IExtension[] extensions;
      if (extensionPoint != null) {
          extensions = extensionPoint.getExtensions();
      } else {
          extensions = new IExtension[0];
      }
      ArrayList results = new ArrayList();
      for (int i = 0; i < extensions.length; i++) {
View Full Code Here

 
  /* Computes the list of artifact types by scanning the platform registry. */
  private String[] computeReportArtifactTypes()
  {
    IExtensionRegistry registry = Platform.getExtensionRegistry();
    IExtensionPoint extensionPoint = registry.getExtensionPoint(REPORT_ARTIFACT_TYPES_EXT_ID);
    IExtension[] extensions;
    if (extensionPoint != null) {
      extensions = extensionPoint.getExtensions();
    } else {
      extensions = new IExtension[0];
    }
    ArrayList results = new ArrayList();
    for (int i = 0; i < extensions.length; i++)
View Full Code Here

   * read from plugin registry and parse it.
   */
  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]);
      }
    }
View Full Code Here

   * read from plugin registry and parse it.
   */
  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]);
      }
    }
View Full Code Here

 
  public String[] getNoValidationNatureId(){
    if(noValidationNatureIds==null){
      ArrayList list = new ArrayList();
      IExtensionRegistry registry = Platform.getExtensionRegistry();
      IExtensionPoint point = registry.getExtensionPoint(getPluginId() + ".noValidationNatures");
      IExtension[] extensions = point.getExtensions();
      for(int i=0;i<extensions.length;i++){
        IConfigurationElement[] elements = extensions[i].getConfigurationElements();
        for (int j = 0; j < elements.length; j++) {
          if ("noValidationNature".equals(elements[j].getName())) {
            String natureId = elements[j].getAttribute("natureId");
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.