рефакторинг. неудачные наименования классов, и остатки старых вариантов

This commit is contained in:
2023-10-08 01:06:55 +03:00
parent 49805f1293
commit eedddcd7d3
42 changed files with 295 additions and 1415 deletions

View File

@@ -8,7 +8,6 @@ import GlobalData.Machine.Machine;
import GlobalData.Makefile.Makefile;
import GlobalData.Module.Module;
import GlobalData.RemoteFile.RemoteFile;
import GlobalData.RemoteSapfor.RemoteSapfor;
import GlobalData.RunConfiguration.RunConfiguration;
import GlobalData.Tasks.CompilationTask.CompilationTask;
import GlobalData.Tasks.RunTask.RunTask;
@@ -102,9 +101,7 @@ public enum Current {
//-
DialogWindow,
//-
SapforTasksPackage,
PackageVersion,
RemoteSapfor,
SapforConfiguration,
SapforConfigurationCommand,
SapforTask,
@@ -267,13 +264,6 @@ public enum Current {
return get(Current.ComponentServerBackup) != null;
}
//-
public static boolean HasSapforTasksPackage() {
return get(Current.SapforTasksPackage) != null;
}
public static SapforTestingSystem.SapforTasksPackage.SapforTasksPackage getSapforTasksPackage() {
return (SapforTestingSystem.SapforTasksPackage.SapforTasksPackage) get(Current.SapforTasksPackage);
}
//-
public static DefaultMutableTreeNode getProjectNode() {
return (DefaultMutableTreeNode) get(Current.ProjectNode);
}
@@ -334,12 +324,6 @@ public enum Current {
public static boolean HasPackageVersion() {
return get(Current.PackageVersion) != null;
}
public static GlobalData.RemoteSapfor.RemoteSapfor getRemoteSapfor() {
return (RemoteSapfor) get(RemoteSapfor);
}
public static boolean HasRemoteSapfor() {
return get(Current.RemoteSapfor) != null;
}
public static boolean HasSapforConfiguration() {
return get(Current.SapforConfiguration) != null;
}
@@ -383,12 +367,13 @@ public enum Current {
public static GlobalData.SapforProfile.SapforProfile getSapforProfile() {
return (GlobalData.SapforProfile.SapforProfile) get(Current.SapforProfile);
}
public static boolean HasSapforScenario() {
public static boolean HasSapforTasksPackage() {
return get(Current.SapforScenario) != null;
}
public static SapforTestingSystem.SapforScenario.SapforScenario getSapforScenario() {
return (SapforTestingSystem.SapforScenario.SapforScenario) get(Current.SapforScenario);
public static SapforTestingSystem.SapforTasksPackage.SapforTasksPackage getSapforTasksPackage() {
return (SapforTestingSystem.SapforTasksPackage.SapforTasksPackage) get(Current.SapforScenario);
}
//сапфоры установленные на тестовый сервер.
public static boolean HasServerSapfor() {
return get(Current.ServerSapfor) != null;
}
@@ -422,12 +407,8 @@ public enum Current {
return "Команда конфигурации тестирования SAPFOR";
case SapforConfiguration:
return "Конфигурация тестирования SAPFOR";
case RemoteSapfor:
return "SAPFOR";
case PackageVersion:
return "Версия пакетного режима";
case SapforTasksPackage:
return "Пакет задач SAPFOR";
case TasksPackage:
return "Пакет задач";
case Credentials: