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

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

@@ -23,8 +23,8 @@ public class OpenBugReportTestProject extends Pass<BugReport> {
}
@Override
protected boolean canStart(Object... args) throws Exception {
if (Current_.Check(Log, Current.BugReport) &&
(BugReportInterface.CheckNotDraft(target=Current.getBugReport(),Log))) {
if (Global.mainModule.Check(Log, Current.BugReport) &&
(BugReportInterface.CheckNotDraft(target=Global.mainModule.getBugReport(),Log))) {
if (!target.project_version.isEmpty()) {
root = Paths.get(Global.visualiser.getWorkspace().getAbsolutePath(),
@@ -43,7 +43,7 @@ public class OpenBugReportTestProject extends Pass<BugReport> {
@Override
protected void performPreparation() throws Exception {
passes.get(PassCode.CloseCurrentProject).Do();
Current_.set(Current.Root, null); //чтобы гарантированно не существовало корня.
Global.mainModule.set(Current.Root, null); //чтобы гарантированно не существовало корня.
}
@Override
protected void body() throws Exception {