перенос проходов в центральный модуль
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user