постепенное выведение старой концепции текущих объектов, касаемо табличных лучше держать их в интерфейсе таблиц, чтобы не писать описание объекта дважды и не мучиться с типом. некоторые фиксы

This commit is contained in:
2024-10-24 23:40:24 +03:00
parent f811d9b3ac
commit 36c11ac93f
153 changed files with 765 additions and 739 deletions

View File

@@ -16,6 +16,7 @@ import javax.swing.*;
import java.util.LinkedHashMap;
public class PickCompilerEnvironments extends Pass<String> {
Compiler compiler = null;
RunConfiguration configuration = null;
@Override
public String getIconPath() {
return "/icons/Menu/Regions.png";
@@ -27,8 +28,8 @@ public class PickCompilerEnvironments extends Pass<String> {
//-
@Override
protected boolean canStart(Object... args) throws Exception {
if (Global.mainModule.Check(Log, Current.RunConfiguration)) {
RunConfiguration configuration = Global.mainModule.getRunConfiguration();
if (Global.mainModule.getDb().runConfigurations.getUI().Check(Log)) {
configuration = Global.mainModule.getDb().runConfigurations.getUI().getCurrent();
if (configuration.compiler_id == CommonConstants.Nan) {
Log.Writeln_("Отсутвует DVM компилятор, связанный с текущей конфигурацией запуска.\n" +
"Если конфигурация содержит вызов DVM компилятора, но была создана на версии 801 и ниже,\n" +
@@ -70,14 +71,14 @@ public class PickCompilerEnvironments extends Pass<String> {
}
@Override
protected void body() throws Exception {
LinkedHashMap<String, String> envValues = Global.mainModule.getRunConfiguration().getEnvMap();
LinkedHashMap<String, String> envValues = configuration.getEnvMap();
for (CompilerEnvironment compilerEnv : compiler.environments.Data.values()) {
if (compilerEnv.isSelected()) {
EnvironmentValue confEnv;
if (!envValues.containsKey(compilerEnv.name)) {
confEnv = new EnvironmentValue();
confEnv.machine_id = Global.mainModule.getRunConfiguration().machine_id;
confEnv.run_configuration_id = Global.mainModule.getRunConfiguration().id;
confEnv.machine_id = configuration.machine_id;
confEnv.run_configuration_id = configuration.id;
confEnv.name = compilerEnv.name;
confEnv.value = compilerEnv.value;
Global.mainModule.getDb().Insert(confEnv);