Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.IExtensionRegistry


      }
    });
  }

  private void loadNewsActions() {
    IExtensionRegistry reg = Platform.getExtensionRegistry();
    IConfigurationElement elements[] = reg.getConfigurationElementsFor(NEWS_ACTION_EXTENSION_POINT);
    for (IConfigurationElement element : elements) {
      try {
        String id = element.getAttribute("id"); //$NON-NLS-1$
        fNewsActions.put(id, (INewsAction) element.createExecutableExtension("class"));//$NON-NLS-1$
      } catch (InvalidRegistryObjectException e) {
View Full Code Here


  private void initScopedPreferences() {
    fDefaultScope = new DefaultScope();
    fGlobalScope = new GlobalScope(fDefaultScope);

    /* Pass Service through Initializers */
    IExtensionRegistry reg = Platform.getExtensionRegistry();
    IConfigurationElement elements[] = reg.getConfigurationElementsFor(PREFERENCES_INITIALIZER_EXTENSION_POINT);
    for (IConfigurationElement element : elements) {
      IPreferencesInitializer initializer;
      try {
        initializer = (IPreferencesInitializer) element.createExecutableExtension("class"); //$NON-NLS-1$
        initializer.initialize(fDefaultScope);
View Full Code Here

  public IModelTypesFactory getTypesFactory() {
    return fTypesFactory;
  }

  private IModelTypesFactory loadTypesFactory() {
    IExtensionRegistry reg = Platform.getExtensionRegistry();
    IConfigurationElement elements[] = reg.getConfigurationElementsFor(MODEL_TYPESFACTORY_EXTENSION_POINT);

    if (elements.length > 0)
      try {
        return (IModelTypesFactory) elements[0].createExecutableExtension("class");//$NON-NLS-1$
      } catch (CoreException e) {
View Full Code Here

    /* Return the default types factory */
    return new DefaultModelTypesFactory();
  }

  private PersistenceLayer loadPersistanceLayer() {
    IExtensionRegistry reg = Platform.getExtensionRegistry();
    IConfigurationElement elements[] = reg.getConfigurationElementsFor(PERSISTANCE_LAYER_EXTENSION_POINT);

    if (elements.length > 0)
      try {
        return (PersistenceLayer) elements[0].createExecutableExtension("class");//$NON-NLS-1$
      } catch (CoreException e) {
View Full Code Here

   * provided.
   * @throws IllegalStateException if no contribution was found and the default
   * executable is <code>NULL</code>.
   */
  public static Object loadSingletonExecutableExtension(String extensionPoint, Object defaultExecutable) {
    IExtensionRegistry reg = Platform.getExtensionRegistry();
    IConfigurationElement elements[] = reg.getConfigurationElementsFor(extensionPoint);

    /* More than one contribution - Choose 3d party over our own */
    if (elements.length > 1) {
      for (IConfigurationElement element : elements) {

View Full Code Here

   * persistence layer.
   */
  public abstract void recreateSchema() throws PersistenceException;

  private IModelDAO loadModelDAO() {
    IExtensionRegistry reg = Platform.getExtensionRegistry();
    IConfigurationElement elements[] = reg.getConfigurationElementsFor(MODEL_DAO_EXTENSION_POINT);

    return (IModelDAO) loadExtension(elements);
  }
View Full Code Here

    return (IModelDAO) loadExtension(elements);
  }
 
  private IDGenerator loadIDGenerator() {
    IExtensionRegistry reg = Platform.getExtensionRegistry();
    IConfigurationElement elements[] = reg.getConfigurationElementsFor(MODEL_ID_GENERATOR_EXTENSION_POINT);
   
    return (IDGenerator) loadExtension(elements);
  }
View Full Code Here

   
    return (IDGenerator) loadExtension(elements);
  }

  private IApplicationLayer loadApplicationLayer() {
    IExtensionRegistry reg = Platform.getExtensionRegistry();
    IConfigurationElement elements[] = reg.getConfigurationElementsFor(MODEL_APPLICATION_LAYER_EXTENSION_POINT);

    return (IApplicationLayer) loadExtension(elements);
  }
View Full Code Here

     * done in each extension specific method. */
    return null;
  }

  private IModelSearch loadModelSearch() {
    IExtensionRegistry reg = Platform.getExtensionRegistry();
    IConfigurationElement elements[] = reg.getConfigurationElementsFor(MODEL_SEARCH_EXTENSION_POINT);

    return (IModelSearch) loadExtension(elements);
  }
View Full Code Here

    return (IModelSearch) loadExtension(elements);
  }

  private IPreferencesDAO loadPreferencesDAO() {
    IExtensionRegistry reg = Platform.getExtensionRegistry();
    IConfigurationElement elements[] = reg.getConfigurationElementsFor(MODEL_PREFERENCES_EXTENSION_POINT);

    return (IPreferencesDAO) loadExtension(elements);
  }
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.