if (location == null)
return false;
File theStorageDir = new File(location.getURL().getPath() + '/' + Activator.PI_APP);
if (storageManager == null) {
boolean readOnly = location.isReadOnly();
storageManager = new StorageManager(theStorageDir, readOnly ? "none" : null, readOnly); //$NON-NLS-1$
storageManager.open(!readOnly);
}
File dataFile = storageManager.lookup(fileName, false);
if (dataFile == null || !dataFile.isFile()) {
Location parent = location.getParentLocation();
if (parent != null) {
theStorageDir = new File(parent.getURL().getPath() + '/' + Activator.PI_APP);
StorageManager tmp = new StorageManager(theStorageDir, "none", true); //$NON-NLS-1$
tmp.open(false);
dataFile = tmp.lookup(fileName, false);
tmp.close();
}
}
if (dataFile == null || !dataFile.isFile())
return true;
if (FILE_APPLOCKS.equals(fileName))