рефакторинг. вынес в обобщенную часть бд, но еще не все

This commit is contained in:
2024-10-08 01:30:25 +03:00
parent d0c08a2c7e
commit 18ceb04325
91 changed files with 442 additions and 456 deletions

View File

@@ -1,14 +1,15 @@
package Visual_DVM_2021.Passes.All;
import Common.CommonConstants;
import Common.CurrentAnchestor;
import Common.Utils.CommonUtils;
import Common_old.Current;
import _VisualDVM.Global;
import Common_old.UI.Windows.Dialog.Dialog;
import GlobalData.Compiler.Compiler;
import GlobalData.Compiler.CompilerType;
import GlobalData.CompilerEnvironment.CompilerEnvironment;
import GlobalData.CompilerEnvironment.UI.CompilerEnvironmentsFields;
import GlobalData.EnvironmentValue.EnvironmentValue;
import GlobalData.GlobalDatabase;
import GlobalData.RunConfiguration.RunConfiguration;
import Visual_DVM_2021.Passes.PassCode_2021;
import Visual_DVM_2021.Passes.Pass_2021;
@@ -81,13 +82,13 @@ public class PickCompilerEnvironments extends Pass_2021<String> {
confEnv.run_configuration_id = Current.getRunConfiguration().id;
confEnv.name = compilerEnv.name;
confEnv.value = compilerEnv.value;
Global.db.Insert(confEnv);
CommonUtils.db.Insert(confEnv);
} else {
confEnv = Global.db.environmentValues.getEnvByName(compilerEnv.name);
confEnv = ((GlobalDatabase)CommonUtils.db).environmentValues.getEnvByName(compilerEnv.name);
if (confEnv != null) {
confEnv.name = compilerEnv.name;
confEnv.value = compilerEnv.value;
Global.db.Update(confEnv);
CommonUtils.db.Update(confEnv);
}
}
}
@@ -95,6 +96,6 @@ public class PickCompilerEnvironments extends Pass_2021<String> {
}
@Override
protected void showDone() throws Exception {
Global.db.environmentValues.ShowUI();
((GlobalDatabase)CommonUtils.db).environmentValues.ShowUI();
}
}