Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.IContributor


        // TODO: this code assumes that the debugged debugTarget and the
        // erlide-plugin uses the same Erlang version, how can we escape this?

        for (final IConfigurationElement el : els) {
            final IContributor c = el.getContributor();
            final String name = c.getName();
            if (name.equals(bundle.getSymbolicName())) {
                final String dirPath = el.getAttribute("path");
                final Enumeration<?> e = bundle.getEntryPaths(dirPath);
                if (e == null) {
                    ErlLogger.error("* !!! error loading plugin "
View Full Code Here


  }

  private static void addListenerAdapter(IConfigurationElement config) {
    String interf = config.getAttribute("interface");
    String adapter = config.getAttribute("adapter");
    IContributor contrib = config.getContributor();
    String pluginID = contrib.getName();
    Bundle bundle = Platform.getBundle(pluginID);
    try {
      Class interClass = bundle.loadClass(interf);
      Class adapterClass = bundle.loadClass(adapter);
      listenerAdapters.put(interClass, adapterClass);
View Full Code Here

  }

  @Override
  public void setInitializationData(IConfigurationElement config, String propertyName, Object data) throws CoreException {
    String widgetClassname=config.getAttribute("widgetClass");
    IContributor contrib = config.getContributor();
    String pluginID = contrib.getName();
    Bundle bundle = Platform.getBundle(pluginID);
    try {
      beanClass=bundle.loadClass(widgetClassname);
    } catch (Exception e) {
      WidgetPlugin.getLogger().error(e);
View Full Code Here

      }
    }
  }

  private void parseGroupExtension(IExtension extension, Composite bar) {
    IContributor contributor = extension.getContributor();
    String pluginId = contributor.getName();
    Bundle bundle = Platform.getBundle(pluginId);
    IConfigurationElement[] configs = extension.getConfigurationElements();
    if (configs != null && configs.length > 0) {
      for (int i = 0; i < configs.length; i++) {
        String name = configs[i].getName();
View Full Code Here

      }
    }
  }

  private void parseWidgetExtension(IExtension extension) {
    IContributor contributor = extension.getContributor();
    String pluginId = contributor.getName();
    IConfigurationElement[] configs = extension.getConfigurationElements();
    if (configs != null && configs.length > 0) {
      for (int i = 0; i < configs.length; i++) {
        String name = configs[i].getName();
        if (name.equals("widget")) {
View Full Code Here

  public void setInitializationData(IConfigurationElement config, String propertyName, Object data) throws CoreException {
    widgetName = config.getAttribute("widgetName"); //$NON-NLS-1$
    String sIcon = config.getAttribute("icon"); //$NON-NLS-1$
    if (sIcon != null && sIcon.trim().length() > 0) {
      IContributor contributor = config.getContributor();
      String pluginId = contributor.getName();
      this.iconImage = VisualSwingPlugin.getSharedImage(pluginId, sIcon);
    }
    propertyConfigs = parseProperties(config); // ...
  }
View Full Code Here

  }

  private Class getWidgetClass(IConfigurationElement config) {
    try {
      String widgetClassname = config.getAttribute("widgetClass"); //$NON-NLS-1$
      IContributor contributor = config.getContributor();
      String pluginId = contributor.getName();
      Bundle bundle = Platform.getBundle(pluginId);
      return bundle.loadClass(widgetClassname);
    } catch (Exception e) {
      VisualSwingPlugin.getLogger().error(e);
      return null;
View Full Code Here

        for (IExtension extension : extensions) {
            IConfigurationElement[] elements = extension.getConfigurationElements();
            for (IConfigurationElement configElt : elements) {
                String libPathAsString;
                String pluginId;
                IContributor contributor = null;
                try {
                    contributor = configElt.getContributor();
                    if (contributor == null) {
                        throw new IllegalArgumentException("Null contributor");
                    }
                    pluginId = configElt.getAttribute(PLUGIN_ID);
                    if (pluginId == null) {
                        throw new IllegalArgumentException("Missing '" + PLUGIN_ID + "'");
                    }
                    libPathAsString = configElt.getAttribute(LIBRARY_PATH);
                    if (libPathAsString == null) {
                        throw new IllegalArgumentException("Missing '" + LIBRARY_PATH + "'");
                    }
                    libPathAsString = resolveRelativePath(contributor, libPathAsString);
                    if (libPathAsString == null) {
                        throw new IllegalArgumentException("Failed to resolve library path for: " + pluginId);
                    }
                    if(set.containsKey(pluginId)) {
                        throw new IllegalArgumentException("Duplicated '" + pluginId + "' contribution.");
                    }
                    set.put(pluginId, libPathAsString);
                } catch (Throwable e) {
                    String cName = contributor != null ? contributor.getName() : "unknown contributor";
                    String message = "Failed to read contribution for '" + EXTENSION_POINT_ID
                            + "' extension point from " + cName;
                    FindbugsPlugin.getDefault().logException(e, message);
                    continue;
                }
View Full Code Here

    if (refinement != null) {
      refinementPolicy = (IRefinementPolicy) element
          .createExecutableExtension("refinement");
    }

    IContributor contributor = element.getContributor();
    Configuration configuration = new Configuration(name,
        contributor.getName(), format, graphTypes, vertexTypes,
        edgeTypes, validator, refinementPolicy);
    return configuration;
  }
View Full Code Here

                }

                String bundleId = configElements[0].getAttribute("bundleId");
                if (StringUtils.isEmpty(bundleId))
                {
                    final IContributor c = extension.getContributor();
                    bundleId = c.getName();
                }

                final Bundle b = Platform.getBundle(bundleId);
                if (b == null)
                {
View Full Code Here

TOP

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

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.