if (jar.getPluginRelativePath() == null) {   String location= Platform.getBundle(jar.getPluginId()).getLocation(); if (location.startsWith(UPDATE_PREFIX)) location= location.substring(UPDATE_PREFIX.length()); return Platform.getInstallLocation().getURL().getFile() + location; } Bundle bundle= Platform.getBundle(jar.getPluginId()); URL url= new URL(bundle.getEntry("/"), jar.getPluginRelativePath());
Bundle bundle= JUnitPlugin.getDefault().getBundle(jar.getPluginId()); URL url; if (jar.getPluginRelativePath() == null) url= bundle.getEntry("/"); else url= bundle.getEntry(jar.getPluginRelativePath());
	private String localURL(JUnitRuntimeClasspathEntry jar) throws IOException, MalformedURLException {		if (jar.getPluginRelativePath() == null) {			//TODO: INTERNAL call://			String location= Platform.getPlatformAdmin().getState(false).getBundle(jar.getPluginId(), null).getLocation();			String location= Platform.getBundle(jar.getPluginId()).getLocation();			if (location.startsWith(UPDATE_PREFIX))				location= location.substring(UPDATE_PREFIX.length());			return Platform.getInstallLocation().getURL().getFile() + location;		}		Bundle bundle= Platform.getBundle(jar.getPluginId());		URL url= new URL(bundle.getEntry("/"), jar.getPluginRelativePath()); //$NON-NLS-1$		return FileLocator.toFileURL(url).getFile();	}