рефакторинг. переносил текущие объекты в другое место

This commit is contained in:
2024-10-13 22:08:13 +03:00
parent 09b64218bd
commit 6afa2dc892
240 changed files with 1472 additions and 1518 deletions

View File

@@ -49,7 +49,7 @@ public class Precompilation extends Pass<db_project_info> {
}
@Override
protected boolean canStart(Object... args) throws Exception {
target = Current.getProject();
target = Global.mainModule.getProject();
if (Utils_.isWindows()) {
//--
makepath = Global.mainModule.getDb().settings.get(SettingName.LocalMakePathWindows).toString();
@@ -134,9 +134,9 @@ public class Precompilation extends Pass<db_project_info> {
@Override
protected void showPreparation() throws Exception {
UI.getMainWindow().getProjectWindow().ShowNoAnalyses();
if (Current.HasFile()) {
Current.getFile().form.ShowNoMessages();
Current.getFile().form.ShowNoAnalyses();
if (Global.mainModule.HasFile()) {
Global.mainModule.getFile().form.ShowNoMessages();
Global.mainModule.getFile().form.ShowNoAnalyses();
}
}
protected static void unpackPrecompilationMessages(db_project_info target, String text) throws Exception {
@@ -241,9 +241,9 @@ public class Precompilation extends Pass<db_project_info> {
@Override
protected void showFinish() throws Exception {
UI.getMainWindow().getProjectWindow().RefreshProjectTreeAndMessages();
if (Current.HasFile()) {
Current.getFile().form.ShowCompilationOutput();
Current.getFile().form.FocusCompilationOut();
if (Global.mainModule.HasFile()) {
Global.mainModule.getFile().form.ShowCompilationOutput();
Global.mainModule.getFile().form.FocusCompilationOut();
}
}
@Override