Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.IPluginDescriptor


                javaProject.setRawClasspath(newEntries, null);
        }

        private Path findFileInPlugin(String plugin, String file) throws MalformedURLException, IOException {
                IPluginRegistry registry= Platform.getPluginRegistry();
                IPluginDescriptor descriptor= registry.getPluginDescriptor(plugin);
                URL pluginURL= descriptor.getInstallURL();
                URL jarURL= new URL(pluginURL, file);
                URL localJarURL= Platform.asLocalURL(jarURL);
                return new Path(localJarURL.getPath());
        }
View Full Code Here


        IClasspathEntry[] jettyJarPaths = getJarPaths(libDir);
        IClasspathEntry[] apacheJarPaths = new IClasspathEntry[0];
        Plugin tomcatPlugin = Platform.getPlugin("org.eclipse.tomcat");
        if (tomcatPlugin != null)
        {
            IPluginDescriptor descriptor = tomcatPlugin.getDescriptor();
            apacheJarPaths = getLibrariesPaths(descriptor, "org.apache.jasper");
        }
        return LibraryHelper.concatenateEntries(jettyJarPaths, apacheJarPaths);
    }
View Full Code Here

  }

  private Path findFileInPlugin(String plugin, String file)
      throws MalformedURLException, IOException {
    IPluginRegistry registry = Platform.getPluginRegistry();
    IPluginDescriptor descriptor = registry.getPluginDescriptor(plugin);
    URL pluginURL = descriptor.getInstallURL();
    URL jarURL = new URL(pluginURL, file);
    URL localJarURL = Platform.asLocalURL(jarURL);
    return new Path(localJarURL.getPath());
  }
View Full Code Here

TOP

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

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.