else
workspaceInitCallbackQueue.add(callback);
}
private static File getWorkspaceDirectory() throws CoreException {
IWorkspaceRoot eclipseWorkspace = ResourcesPlugin.getWorkspace().getRoot();
IProject cnfProject = eclipseWorkspace.getProject("bnd");
if (!cnfProject.exists())
cnfProject = eclipseWorkspace.getProject("cnf");
if (cnfProject.exists()) {
if (!cnfProject.isOpen())
cnfProject.open(null);
return cnfProject.getLocation().toFile().getParentFile();
}
// Have to assume that the eclipse workspace == the bnd workspace,
// and cnf hasn't been imported yet.
return eclipseWorkspace.getLocation().toFile();
}