boolean locked = lock();   if (!readOnly && !locked) { if (wait == false)
if (openCleanup) cleanup(); if (!readOnly) { boolean locked = lock(wait); if (!locked && wait)
	public void open(boolean wait) throws IOException {		boolean locked = lock();		//wait for the lock to be released		if (!readOnly && !locked) {			if (wait == false)				throw new IOException(EclipseAdaptorMsg.fileManager_cannotLock);			do {				try {					Thread.sleep(10);				} catch (InterruptedException e) {					// Ignore the exception and keep waiting				}			} while (lock());		}		try {			updateTable();		} finally {			release();		}	}