if ("file".equals(installURL.getProtocol()) && installDir.canWrite())
if ("file".equals(installURL.getProtocol()) && canWrite(installDir))
	private static String computeDefaultConfigurationLocation() {		// 1) We store the config state relative to the 'eclipse' directory if possible		// 2) If this directory is read-only 		//    we store the state in <user.home>/.eclipse/<application-id>_<version> where <user.home> 		//    is unique for each local user, and <application-id> is the one 		//    defined in .eclipseproduct marker file. If .eclipseproduct does not		//    exist, use "eclipse" as the application-id.		URL installURL = computeInstallConfigurationLocation();		File installDir = new File(installURL.getFile());		if ("file".equals(installURL.getProtocol()) && installDir.canWrite()) //$NON-NLS-1$			return new File(installDir, CONFIG_DIR).getAbsolutePath();		// We can't write in the eclipse install dir so try for some place in the user's home dir		return computeDefaultUserAreaLocation(CONFIG_DIR);	}