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

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

@@ -42,8 +42,8 @@ public class DVMConvertProject extends ComponentsRepositoryPass<db_project_info>
version = null;
badFiles = "";
//--
if (Current_.Check(Log, Current.Project)) {
target = Current.getProject();
if (Global.mainModule.Check(Log, Current.Project)) {
target = Global.mainModule.getProject();
programsToConvert = target.getPrograms().get(target.languageName);
programsNames = new Vector<>();
if (programsToConvert.size() > 100) {
@@ -136,10 +136,10 @@ public class DVMConvertProject extends ComponentsRepositoryPass<db_project_info>
@Override
protected void showFinish() throws Exception {
UI.getMainWindow().getProjectWindow().RefreshProjectTreeAndMessages();
if (Current.HasFile()) {
Current.getFile().form.ShowCompilationOutput();
if (Global.mainModule.HasFile()) {
Global.mainModule.getFile().form.ShowCompilationOutput();
if (!output.isEmpty())
Current.getFile().form.FocusCompilationOut();
Global.mainModule.getFile().form.FocusCompilationOut();
}
if (!badFiles.isEmpty())
UI_.Error(badFiles);