indexURL = new File(URLUtils.cheatAndTurnIntoFile(indexURL).getParentFile(), "index.eomodeld").toURI();
} else if ("fspec".equalsIgnoreCase(extension)) {
indexURL = new File(URLUtils.cheatAndTurnIntoFile(indexURL).getParentFile(), "index.eomodeld").toURI();
}
EOModelGroup modelGroup = new EOModelGroup();
modelGroup.addPropertyChangeListener(EOModelGroup.MODELS, getContentOutlinePage());
try {
IEOModelGroupFactory.Utility.loadModelGroup(indexURL, modelGroup, myLoadFailures, true, indexURL.toURL(), progressMonitor);
} finally {
modelGroup.removePropertyChangeListener(EOModelGroup.MODELS, getContentOutlinePage());
}
EOModel model = modelGroup.getEditingModel();
boolean showModelGroup = true;
if (model == null) {
handleModelErrors(myLoadFailures, true, null);
Set<EOModel> models = modelGroup.getModels();
if (models.size() > 0) {
model = models.iterator().next();
showModelGroup = true;
}
}