System.getProperties().put(property, location.toExternalForm());
FrameworkProperties.setProperty(property, location.toExternalForm());
	public synchronized boolean setURL(URL value, boolean lock) throws IllegalStateException {		if (location != null)			throw new IllegalStateException(EclipseAdaptorMsg.ECLIPSE_CANNOT_CHANGE_LOCATION);		File file = null;		if (value.getProtocol().equalsIgnoreCase("file")) { //$NON-NLS-1$			try {				String basePath = new File(value.getFile()).getCanonicalPath();				value = new URL("file:" + basePath); //$NON-NLS-1$			} catch (IOException e) {				// do nothing just use the original value			}			file = new File(value.getFile(), LOCK_FILENAME);		}		lock = lock && !isReadOnly;		if (lock) {			try {				if (!lock(file))					return false;			} catch (IOException e) {				return false;			}		}		lockFile = file;		location = LocationManager.buildURL(value.toExternalForm(), true);		if (property != null)			System.getProperties().put(property, location.toExternalForm());		return lock;	}