no message
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
package _VisualDVM.Passes.All;
|
||||
import Common.Passes.Pass;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.Passes.PassCode;
|
||||
import _VisualDVM.Repository.BugReport.BugReport;
|
||||
import _VisualDVM.Repository.BugReport.BugReportInterface;
|
||||
import _VisualDVM.Passes.PassCode;
|
||||
import Common.Passes.Pass;
|
||||
|
||||
import java.io.File;
|
||||
import java.nio.file.Paths;
|
||||
@@ -23,8 +23,7 @@ public class OpenBugReportTestProject extends Pass<BugReport> {
|
||||
@Override
|
||||
protected boolean canStart(Object... args) throws Exception {
|
||||
if (Global.mainModule.Check(Log, Current.BugReport) &&
|
||||
(BugReportInterface.CheckNotDraft(target=Global.mainModule.getBugReport(),Log))) {
|
||||
|
||||
(BugReportInterface.CheckNotDraft(target = Global.mainModule.getBugReport(), Log))) {
|
||||
if (!target.project_version.isEmpty()) {
|
||||
root = Paths.get(Global.visualiser.getWorkspace().getAbsolutePath(),
|
||||
target.id).toFile();
|
||||
@@ -32,7 +31,7 @@ public class OpenBugReportTestProject extends Pass<BugReport> {
|
||||
Utils_.isWindows() ? Utils_.toW(target.project_version)
|
||||
: Utils_.toU(target.project_version)).toFile();
|
||||
return true;
|
||||
}else {
|
||||
} else {
|
||||
Log.Writeln_("Отчёт об ошибке не содержит прикреплённого проекта!");
|
||||
return false;
|
||||
}
|
||||
@@ -66,7 +65,7 @@ public class OpenBugReportTestProject extends Pass<BugReport> {
|
||||
}
|
||||
@Override
|
||||
protected void performDone() throws Exception {
|
||||
if ( Global.mainModule.getPass(PassCode.OpenCurrentProject).Do(project))
|
||||
if (Global.mainModule.getPass(PassCode.OpenCurrentProject).Do(project))
|
||||
Global.mainModule.getPass(PassCode.ApplyBugReportSettings).Do();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user