}
}
@Override
public synchronized RuntimeInfoCatalogData load() {
RuntimeInfoCatalogData data = new RuntimeInfoCatalogData();
data = loadPrefs(data, getDefaultOldRootNode());
data = loadPrefs(data, defaultRootNode);
data = loadPrefs(data, getInstanceOldRootNode());
data = loadPrefs(data, instanceRootNode);
String dflt = null;
String ide = null;
if (data.runtimes.size() > 0) {
dflt = data.defaultRuntimeName != null ? data.defaultRuntimeName
: data.runtimes.iterator().next().getName();
ide = data.erlideRuntimeName != null ? data.erlideRuntimeName : dflt;
}
return new RuntimeInfoCatalogData(data.runtimes, dflt, ide);
}