Examples of RegistryContributor


Examples of org.eclipse.core.runtime.spi.RegistryContributor

      } else
        className = executable;
    }

    // create a new instance
    RegistryContributor defaultContributor = registry.getObjectManager().getContributor(contributorId);
    Object result = registry.createExecutableExtension(defaultContributor, className, contributorName);

    // Check if we have extension adapter and initialize;
    // Make the call even if the initialization string is null
    try {
View Full Code Here

Examples of org.eclipse.core.runtime.spi.RegistryContributor

        hostId = Long.toString(hostBundle.getBundleId());
        hostName = hostBundle.getSymbolicName();
      }
    }

    return new RegistryContributor(id, name, hostId, hostName);
  }
View Full Code Here

Examples of org.eclipse.core.runtime.spi.RegistryContributor

        for (int i = 0; i < size; i++) {
          String id = readStringOrNull(contributorsInput);
          String name = readStringOrNull(contributorsInput);
          String hostId = readStringOrNull(contributorsInput);
          String hostName = readStringOrNull(contributorsInput);
          result.put(id, new RegistryContributor(id, name, hostId, hostName));
        }
      }
      return result;
    } catch (IOException e) {
      String message = NLS.bind(RegistryMessages.meta_regCacheIOExceptionReading, contributorsFile);
View Full Code Here

Examples of org.eclipse.core.runtime.spi.RegistryContributor

    Collection entries = contributors.values();
    outputContributors.writeInt(entries.size());

    for (Iterator i = entries.iterator(); i.hasNext();) {
      RegistryContributor contributor = (RegistryContributor) i.next();
      writeStringOrNull(contributor.getActualId(), outputContributors);
      writeStringOrNull(contributor.getActualName(), outputContributors);
      writeStringOrNull(contributor.getId(), outputContributors);
      writeStringOrNull(contributor.getName(), outputContributors);
    }

    outputContributors.flush();
    fosContributors.getFD().sync();
    outputContributors.close();
View Full Code Here

Examples of org.eclipse.core.runtime.spi.RegistryContributor

   * @param determiningObject object associated with the contribution
   * @return new registry contributor based on the determining object
   */
  public static IContributor createContributor(Object determiningObject) {
    String id = determiningObject.toString();
    return new RegistryContributor(id, id, null, null);
  }
View Full Code Here

Examples of org.eclipse.core.runtime.spi.RegistryContributor

    }
    return contributors;
  }

  synchronized RegistryContributor getContributor(String id) {
    RegistryContributor contributor = (RegistryContributor) getContributors().get(id);
    if (contributor != null)
      return contributor;
    // check if we have it among removed contributors - potentially
    // notification of removals might be processed after the contributor
    // marked as removed:
View Full Code Here

Examples of org.eclipse.core.runtime.spi.RegistryContributor

    }
  }

  synchronized void removeContributor(String id) {
    isDirty = true;
    RegistryContributor removed = (RegistryContributor) getContributors().remove(id);
    if (removed != null) {
      if (removedContributors == null)
        removedContributors = new HashMap();
      removedContributors.put(id, removed);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.