Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.IExtensionRegistry


      }
    }
  }

  private void loadTypeExporters() {
    IExtensionRegistry reg = Platform.getExtensionRegistry();
    IConfigurationElement elements[] = reg.getConfigurationElementsFor(TYPEEXPORTER_EXTENSION_POINT);

    for (IConfigurationElement element : elements) {
      try {
        IConfigurationElement[] formats = element.getChildren("format"); //$NON-NLS-1$
        for (IConfigurationElement format : formats) {
View Full Code Here


        if (runListeners == null) runListeners = computeListeners();
        return runListeners;
    }

    protected List computeListeners() {
        IExtensionRegistry registry = Platform.getExtensionRegistry();
        IExtensionPoint extensionPoint = registry.getExtensionPoint(RUN_LISTENER_ID);
        IExtension[] extensions = extensionPoint.getExtensions();
        ArrayList results = new ArrayList();
        for (int i = 0; i < extensions.length; i++) {
            IConfigurationElement[] elements = extensions[i].getConfigurationElements();
            for (int j = 0; j < elements.length; j++) {
View Full Code Here

import org.eclipse.core.runtime.IExtensionRegistry;
import org.eclipse.core.runtime.Platform;

abstract class StylesheetFactoryImpl {
    Stylesheet[] createStylesheets(Class stylesheetInterface) {
        IExtensionRegistry extensionRegistry = Platform.getExtensionRegistry();
        IConfigurationElement[] configElements = extensionRegistry
                .getConfigurationElementsFor(stylesheetInterface.getName());
        Stylesheet[] result = (Stylesheet[])java.lang.reflect.Array.newInstance(
                stylesheetInterface, configElements.length);
        for (int i = 0; i < configElements.length; i++) {
            try {
View Full Code Here

        String extensionPointID = extensionPointInterface.getName();
        return getExtensions(extensionPointID, extensionPointInterface);
    }
   
    public Object[] getExtensions(String extensionPointID, Class extensionPointInterface) {
        IExtensionRegistry extensionRegistry = Platform.getExtensionRegistry();
        IConfigurationElement[] configElements = extensionRegistry
                .getConfigurationElementsFor(extensionPointID);
       
        ArrayList extensions = new ArrayList();
        for (int i = 0; i < configElements.length; i++) {
            try {
View Full Code Here

     */
    private void initEntryEditorExtensions()
    {
        entryEditorExtensions = new HashMap<String, EntryEditorExtension>();

        IExtensionRegistry registry = Platform.getExtensionRegistry();
        IExtensionPoint extensionPoint = registry.getExtensionPoint( BrowserUIConstants.ENTRY_EDITOR_EXTENSION_POINT );
        IConfigurationElement[] members = extensionPoint.getConfigurationElements();

        // For each extension:
        for ( int m = 0; m < members.length; m++ )
        {
View Full Code Here

    private static final String EXTENSION_ID_CALLBACK = PLUGIN_ID + ".callback"; //$NON-NLS-1$

    private static final String EXTENSION_ID_APP_STATE_TRACKER = "appStateTracker"; //$NON-NLS-1$

    public static CloudFoundryCallback readExtension() {
      IExtensionRegistry registry = Platform.getExtensionRegistry();
      IExtensionPoint extensionPoint = registry.getExtensionPoint(EXTENSION_ID_CALLBACK);
      IExtension[] extensions = extensionPoint.getExtensions();
      for (IExtension extension : extensions) {
        IConfigurationElement[] elements = extension.getConfigurationElements();
        for (IConfigurationElement element : elements) {
          if (element.getName().compareTo(ELEMENT_CALLBACK) == 0) {
View Full Code Here

      // if (Trace.CONFIG) {
      // Trace.trace(Trace.STRING_CONFIG,
      // "->- Loading .appStateTracker extension point ->-");
      // }
      appStateTrackerEntries = new ArrayList<AppStateTrackerEntry>();
      IExtensionRegistry registry = Platform.getExtensionRegistry();
      IConfigurationElement[] cf = registry
          .getConfigurationElementsFor(PLUGIN_ID, EXTENSION_ID_APP_STATE_TRACKER);

      for (IConfigurationElement curConfigElement : cf) {
        // load the extension in a safe environment. If there are NPEs
        // or miss configurations they will be caught by try/catch
View Full Code Here

{
    public static List<IRepositoryType> loadRepositoryTypes()
    {
        List<IRepositoryType> repositories = new ArrayList<IRepositoryType>();

        IExtensionRegistry registry = Platform.getExtensionRegistry();

        IExtensionPoint p = registry.getExtensionPoint(SigilCore.REPOSITORY_PROVIDER_EXTENSION_POINT_ID);

        for (IExtension e : p.getExtensions())
        {
            for (IConfigurationElement c : e.getConfigurationElements())
            {
View Full Code Here

     * @return
     */
    public static EclipseRepositoryProviderWrapper getProvider(String alias)
    throws CoreException
    {
        IExtensionRegistry registry = Platform.getExtensionRegistry();
        IExtensionPoint p = registry.getExtensionPoint(SigilCore.REPOSITORY_PROVIDER_EXTENSION_POINT_ID);

        for (IExtension e : p.getExtensions())
        {
            for (IConfigurationElement c : e.getConfigurationElements())
            {
View Full Code Here

        return findWizardConfig(type.getId()) != null;
    }

    private static IConfigurationElement findWizardConfig(String id)
    {
        IExtensionRegistry registry = Platform.getExtensionRegistry();
        IExtensionPoint p = registry.getExtensionPoint(SigilUI.REPOSITORY_WIZARD_EXTENSION_POINT_ID);

        for (IExtension e : p.getExtensions())
        {
            for (IConfigurationElement c : e.getConfigurationElements())
            {
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.