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

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

@@ -29,7 +29,7 @@ public class DownloadTest extends TestingSystemPass<Test> {
}
@Override
protected void performPreparation() throws Exception {
passes.get(PassCode.CloseCurrentProject).Do();
Global.mainModule.getPass(PassCode.CloseCurrentProject).Do();
Global.mainModule.set(Current.Root, null); //чтобы гарантированно не существовало корня.
Utils.forceDeleteWithCheck(target.getArchive());
Utils.forceDeleteWithCheck(target.getHomePath());
@@ -46,14 +46,14 @@ public class DownloadTest extends TestingSystemPass<Test> {
@Override
protected void performDone() throws Exception {
super.performDone();
if (passes.get(PassCode.UnzipFolderPass).Do(
if ( Global.mainModule.getPass(PassCode.UnzipFolderPass).Do(
target.getArchive().getAbsolutePath(),
Global.visualiser.getWorkspace().getAbsolutePath(), false
))
if (UI_.Question("Тестовый проект успешно загружен под именем\n" +
Utils_.Brackets(target.getHomePath().getName()) +
"\nОткрыть его"))
passes.get(PassCode.OpenCurrentProject).Do(target.getHomePath());
Global.mainModule.getPass(PassCode.OpenCurrentProject).Do(target.getHomePath());
}
}