if (url != null) { pathName = url.getFile(); return pathName.replaceAll("%20", " "); } else { return null; }
String pluginPath = System.getProperty("PLUGIN_PATH"); System.out.println("PLUGIN_PATH <"+pluginPath+">"); if (pluginPath == null) urlPath = getClass().getClassLoader().getResource(fileName).getFile(); else urlPath = pluginPath + "/data/" + fileName;  System.out.println("Resolved file name for " + fileName + " = " + urlPath); return urlPath;
String getPath(String fileName) {	final String packageName = "org/eclipse/swt/tests/junit/";	String pathName = packageName + fileName;	URL url = SwtTestCase.class.getClassLoader().getResource(pathName);		if (url != null) {		pathName = url.getFile();		return pathName.replaceAll("%20", " ");	} else {		return null;	}	}