use of com.twinsoft.convertigo.engine.helpers.WalkHelper in project convertigo by convertigo.
the class DatabaseObjectsManager method symbolsUpdated.
private void symbolsUpdated() {
try {
Properties symbolsToStore = new Properties();
Enumeration<String> propsEnum = GenericUtils.cast(symbolsProperties.propertyNames());
while (propsEnum.hasMoreElements()) {
String name = propsEnum.nextElement();
symbolsToStore.put(name, symbolsGetValueStore(name));
}
System.out.println("symbolsUpdated: " + symbolsToStore + " to:" + globalSymbolsFilePath);
PropertiesUtils.store(symbolsToStore, globalSymbolsFilePath, "global symbols");
} catch (Exception e) {
Engine.logEngine.error("Failed to store symbols!", e);
}
for (Project project : projects.values()) {
getProjectLoadingData().undefinedGlobalSymbol = false;
try {
new WalkHelper() {
@Override
protected void walk(DatabaseObject databaseObject) throws Exception {
databaseObject.updateSymbols();
super.walk(databaseObject);
}
}.init(project);
} catch (Exception e) {
Engine.logDatabaseObjectManager.error("Failed to update symbols of '" + project.getName() + "' project.", e);
}
project.undefinedGlobalSymbols = getProjectLoadingData().undefinedGlobalSymbol;
}
}
Aggregations