очистка отладочной печати. тоже кое-что накопилось.
This commit is contained in:
@@ -150,27 +150,21 @@ public class db_project_info extends DBObject {
|
||||
DBLastProject info = null; //обновляется при открытии проекта.
|
||||
public SapforProperties sapforProperties=null;
|
||||
public void SynchronizeSapforProperties() throws Exception{
|
||||
System.out.println("Syncronize Sapfor Properties...");
|
||||
if (sapforProperties==null) {
|
||||
File propertiesFile = getPropertiesFile();
|
||||
System.out.println("propertiesFile="+propertiesFile.getAbsolutePath());
|
||||
if (propertiesFile.exists()) {
|
||||
System.out.println("properties file found.");
|
||||
sapforProperties = Utils_.ReadProperties(propertiesFile,SapforProperties.class);
|
||||
} else {
|
||||
System.out.println("properties file not found. try get default profile..");
|
||||
SapforProfile defaultProfile = Global.mainModule.getDb().getDefaultSapforProfile();
|
||||
if (defaultProfile == null) {
|
||||
System.out.println("Default profile not found!");
|
||||
sapforProperties = new SapforProperties(propertiesFile);
|
||||
Utils_.jsonToFile(sapforProperties, propertiesFile);
|
||||
} else {
|
||||
System.out.println("Default profile is " + defaultProfile.description);
|
||||
sapforProperties = new SapforProperties(getPropertiesFile());
|
||||
sapforProperties.applyProfile(Global.mainModule.getDb().getVectorByFK(defaultProfile, SapforProfileSetting.class));
|
||||
}
|
||||
}
|
||||
}else System.out.println("properties object found");
|
||||
}
|
||||
}
|
||||
public File getPropertiesFile(){
|
||||
return new File(getDataDirectory(), "properties");
|
||||
@@ -826,7 +820,7 @@ public class db_project_info extends DBObject {
|
||||
res.add(node);
|
||||
funcCallH.calls.add((FuncCallH) node.getUserObject());
|
||||
}
|
||||
} else System.out.println("RECURSION " + String.join("->", chain) + "->" + call.funcName);
|
||||
} //else System.out.println("RECURSION " + String.join("->", chain) + "->" + call.funcName);
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user