промежуточный. вариант с разбитием конфигурации сапфора и настройки как отдельный объект
This commit is contained in:
@@ -21,6 +21,7 @@ import Repository.Subscribes.Subscriber;
|
||||
import TestingSystem.Common.Test.Test;
|
||||
import TestingSystem.DVM.DVMConfiguration.DVMConfiguration;
|
||||
import TestingSystem.SAPFOR.SapforConfiguration.SapforConfiguration;
|
||||
import TestingSystem.SAPFOR.SapforSettings.SapforSettings;
|
||||
import Visual_DVM_2021.Passes.UI.PassForm;
|
||||
|
||||
import javax.swing.tree.DefaultMutableTreeNode;
|
||||
@@ -106,7 +107,10 @@ public enum Current {
|
||||
//--
|
||||
ProjectView,
|
||||
SubscriberWorkspace,
|
||||
DVMRunTask;
|
||||
DVMRunTask,
|
||||
SapforSettings,
|
||||
SapforSettingsCommand
|
||||
;
|
||||
//-
|
||||
private static final LinkedHashMap<Current, Object> objects = new LinkedHashMap<>();
|
||||
public static Mode mode;
|
||||
@@ -156,6 +160,13 @@ public enum Current {
|
||||
return get(ProjectView) != null;
|
||||
}
|
||||
//для быстрого доступа на чтение. слишком много на нем завязано.
|
||||
public static SapforSettings getSapforSettings() {
|
||||
return (SapforSettings) get(SapforSettings);
|
||||
}
|
||||
public static boolean HasSapforSettings() {
|
||||
return get(SapforSettings) != null;
|
||||
}
|
||||
|
||||
public static db_project_info getProject() {
|
||||
return (db_project_info) get(Project);
|
||||
}
|
||||
@@ -375,6 +386,10 @@ public enum Current {
|
||||
//--------------------------------------------
|
||||
public String getDescription() {
|
||||
switch (this) {
|
||||
case SapforSettings:
|
||||
return "Настройки системы SAPFOR";
|
||||
case SapforSettingsCommand:
|
||||
return "Команда настроек тестирования SAPFOR";
|
||||
case DVMRunTask:
|
||||
return "Задача DVM тестирования";
|
||||
case SapforPackage:
|
||||
|
||||
Reference in New Issue
Block a user