рефакторинг. переносил текущие объекты в другое место
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user