Examples of IPluginRegistry


Examples of org.eclipse.core.runtime.IPluginRegistry

                newEntries[oldEntries.length]= JavaRuntime.getDefaultJREContainerEntry();
                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

Examples of org.eclipse.core.runtime.IPluginRegistry

    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
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.