no message
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Visual.CommonUI;
|
||||
import Common.Utils.Utils_;
|
||||
import Common.Visual.UI_;
|
||||
import _VisualDVM.Current;
|
||||
import Common.Database.Database;
|
||||
import _VisualDVM.GlobalData.GlobalDatabase;
|
||||
@@ -40,7 +40,7 @@ public class AddBugReport extends AddObjectPass<BugReport> {
|
||||
"Черновик отчёта об ошибке.\nЗаполните описание ошибочной ситуации, и нажмите 'Опубликовать'", version);
|
||||
return true;
|
||||
} else {
|
||||
if (CommonUI.Warning("Создать отчёт об ошибке без прикрепления проекта.")) {
|
||||
if (UI_.Warning("Создать отчёт об ошибке без прикрепления проекта.")) {
|
||||
target = new BugReport();
|
||||
target.genName();
|
||||
target.sender_name = Current.getAccount().name;
|
||||
@@ -48,7 +48,7 @@ public class AddBugReport extends AddObjectPass<BugReport> {
|
||||
target.project_version = "";
|
||||
target.visualiser_version = Global.visualiser.version;
|
||||
target.sapfor_version = Global.Components.get(ComponentType.Sapfor_F).version;
|
||||
target.sapfor_settings =((GlobalDatabase)CommonUtils.db).settings.getSapforSettingsText();
|
||||
target.sapfor_settings =((GlobalDatabase) Utils_.db).settings.getSapforSettingsText();
|
||||
target.percentage = 0;
|
||||
target.description = "Черновик отчёта об ошибке.\nЗаполните описание ошибочной ситуации, и нажмите 'Опубликовать'";
|
||||
target.date = new Date().getTime();
|
||||
@@ -72,7 +72,7 @@ public class AddBugReport extends AddObjectPass<BugReport> {
|
||||
//логи во вложения.
|
||||
File attachementsDir = Current.getProject().getAttachmentsDirectory();
|
||||
Vector<File> logs = new Vector<>();
|
||||
logs.add(CommonUtils.MainLog.getLogFile());
|
||||
logs.add(Utils_.MainLog.getLogFile());
|
||||
logs.add(Paths.get(Global.ComponentsDirectory.getAbsolutePath(), "Sapfor_log.txt").toFile());
|
||||
logs.add(Paths.get(Global.ComponentsDirectory.getAbsolutePath(), "Server_log.txt").toFile());
|
||||
logs.add(Global.Components.get(ComponentType.Visualizer_2).getLogFile());
|
||||
@@ -86,7 +86,7 @@ public class AddBugReport extends AddObjectPass<BugReport> {
|
||||
}
|
||||
@Override
|
||||
protected boolean validate() {
|
||||
double size = CommonUtils.getFileSizeMegaBytes(BugReportInterface.getArchiveFile(target));
|
||||
double size = Utils_.getFileSizeMegaBytes(BugReportInterface.getArchiveFile(target));
|
||||
if (size > 100) {
|
||||
Log.Writeln_("Размер запакованного вложения " + size + " Мб превышает 100 Мб");
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user