Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.IExtensionRegistry


  }

  public static ArrayList<TextRulerLearnerController> getAvailableControllers() {
    if (learners == null) {
      learners = new ArrayList<TextRulerLearnerController>();
      IExtensionRegistry reg = Platform.getExtensionRegistry();
      if (reg == null)
        return null;
      IConfigurationElement[] extensions = reg
              .getConfigurationElementsFor("org.apache.uima.ruta.textruler.learners");
      for (IConfigurationElement element : extensions) {
        try {
          TextRulerLearnerFactory factory = (TextRulerLearnerFactory) element
                  .createExecutableExtension("class");
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++)
      {
View Full Code Here

   * Read from plugin registry and handle the configuration elements that match
   * 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++)
      {
View Full Code Here

    return (WSITestToolsPlugin) instance;
  }

  /* 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 {
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 {
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];
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++)
      {
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++)
      {
View Full Code Here

  private String[] noValidationNatureIds;
 
  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())) {
View Full Code Here

   */
  public IFileAssistProcessor[] getFileAssistProcessors(){
    try {
//      if(fileAssists==null){
        ArrayList list = new ArrayList();
        IExtensionRegistry registry = Platform.getExtensionRegistry();
        IExtensionPoint point = registry.getExtensionPoint(getPluginId() + ".fileAssistProcessor");
        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++) {
            IFileAssistProcessor assist = (IFileAssistProcessor) elements[j].createExecutableExtension("class");
View Full Code Here

TOP

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

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.