рефакторин методов связанных с компонентами.
This commit is contained in:
@@ -44,7 +44,7 @@ public class AddBugReport extends AddObjectPass<BugReport> {
|
||||
target.sender_address = Global.mainModule.getAccount().email;
|
||||
target.project_version = "";
|
||||
target.visualiser_version = Global.visualiser.version;
|
||||
target.sapfor_version = Global.Components.get(ComponentType.Sapfor_F).version;
|
||||
target.sapfor_version = Global.components.get(ComponentType.Sapfor_F).version;
|
||||
target.sapfor_settings = (Global.mainModule.getDb()).settings.getSapforSettingsText();
|
||||
target.percentage = 0;
|
||||
target.description = "Черновик отчёта об ошибке.\nЗаполните описание ошибочной ситуации, и нажмите 'Опубликовать'";
|
||||
@@ -72,7 +72,7 @@ public class AddBugReport extends AddObjectPass<BugReport> {
|
||||
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());
|
||||
logs.add(Global.components.get(ComponentType.Visualizer_2).getLogFile());
|
||||
for (File file : logs) {
|
||||
if (file.exists())
|
||||
Files.copy(file.toPath(), Paths.get(attachementsDir.getAbsolutePath(), file.getName()), StandardCopyOption.REPLACE_EXISTING);
|
||||
|
||||
Reference in New Issue
Block a user