if (readOnly) throw new IOException(EclipseAdaptorMsg.fileManager_illegalInReadOnlyMode); if (!lock()) throw new IOException(EclipseAdaptorMsg.fileManager_cannotLock); try { updateTable(); Entry entry = (Entry) table.get(file); if (entry == null) { table.put(file, new Entry(0, 1)); save(); } } finally { release(); }
add(file, FILETYPE_STANDARD);
	public void add(String file) throws IOException {		if (readOnly)			throw new IOException(EclipseAdaptorMsg.fileManager_illegalInReadOnlyMode); //$NON-NLS-1$					if (!lock())			throw new IOException(EclipseAdaptorMsg.fileManager_cannotLock);		try {			updateTable();			Entry entry = (Entry) table.get(file);			if (entry == null) {				table.put(file, new Entry(0, 1));				save();			}		} finally {			release();		}	}