перенос проходов в центральный модуль

This commit is contained in:
2024-10-13 23:55:03 +03:00
parent 6afa2dc892
commit 4e86871571
150 changed files with 510 additions and 576 deletions

View File

@@ -207,7 +207,7 @@ public class Global {
return (bad_state == 0);
}
public static void changeSetting(SettingName settingName, Object new_value) throws Exception {
Pass.passes.get(PassCode.UpdateSetting).Do(settingName, new_value);
Global.mainModule.getPass(PassCode.UpdateSetting).Do(settingName, new_value);
}
public static String packSapforSettings() {
Vector<String> res_ = new Vector<>();
@@ -224,10 +224,10 @@ public class Global {
}
//--
public static void NormalMode(int port) throws Exception {
mainModule= new MainModule();
//-------------------------------->>
UI_.active = true;
UI_.setTheme(new LightSPFEditorTheme());
mainModule= new MainModule();
CheckVisualiserDirectories();
CreateLogAtComponentsPath();
//-
@@ -245,7 +245,6 @@ public class Global {
messagesServer.Start();
//создание списков служебных объектов
UI.CreateAll();
Pass.CreateAll();
//единственное меню до остальных.
UI_.menuBars.put(ComponentsSet.class, new ComponentsMenuBar());
Components = new ComponentsSet();
@@ -267,7 +266,7 @@ public class Global {
//light_editor.xml-------->>
//-------->>
if (properties.AutoUpdateSearch)
Pass.passes.get(PassCode.GetComponentsActualVersions).Do();
Global.mainModule.getPass(PassCode.GetComponentsActualVersions).Do();
ValidateComponentsStates();
if ((need_update > 0) || (bad_state > 0)) {
boolean flag = true;
@@ -298,10 +297,10 @@ public class Global {
//в проперти их!
//-- чисто чтобы создать таблицы. соединения на стороне клиента не предвидится.
if (mainModule.getDb().settings.get(SettingName.AutoBugReportsLoad).toBoolean())
Pass.passes.get(PassCode.SynchronizeBugReports).Do();
Global.mainModule.getPass(PassCode.SynchronizeBugReports).Do();
//--
if (mainModule.getDb().settings.get(SettingName.AutoTestsLoad).toBoolean())
Pass.passes.get(PassCode.SynchronizeTests).Do();
Global.mainModule.getPass(PassCode.SynchronizeTests).Do();
Pass.CheckAllStats();
Global.mainModule.getSapfor().refreshPid(); //без сапфора сюда это все равно не дойдет.
UI.CreateMenus();