диалог для сравнения двм задач

This commit is contained in:
2024-03-04 20:29:05 +03:00
parent 3c43984fe4
commit e8f2e50257
11 changed files with 180 additions and 20 deletions

View File

@@ -5,6 +5,7 @@ import Common.UI.TextField.StyledTextField;
import Common.UI.UI;
import GlobalData.Compiler.CompilerType;
import TestingSystem.Common.TestingServer;
import TestingSystem.DVM.DVMTasks.DVMRunTask;
import Visual_DVM_2021.UI.Interface.FormWithSplitters;
import Visual_DVM_2021.UI.Interface.TestingWindow;
@@ -31,7 +32,6 @@ public class TestingForm implements FormWithSplitters, TestingWindow {
private JPanel dvmComparisonTab;
private JPanel sapforPackagesTab;
private JPanel sapforComparisonTab;
private JPanel dvmRunTasksPanel;
private JToolBar testsResultsTools;
private JButton bChangeKernels;
@@ -47,7 +47,6 @@ public class TestingForm implements FormWithSplitters, TestingWindow {
private JPanel sapforScenariosPanel;
private JPanel serverSapforsPanel;
private JPanel sapforPackagesPanel;
private JPanel testsRunTasksBackground;
private JCheckBox filterFinished;
private JButton bTest;
@@ -87,7 +86,6 @@ public class TestingForm implements FormWithSplitters, TestingWindow {
Global.testingServer.db.configurations.mountUI(configurationsPanel);
Global.testingServer.db.dvmPackages.mountUI(dvmPackagesPanel);
Global.testingServer.db.dvmRunTasks.mountUI(dvmRunTasksPanel);
Global.testingServer.db.sapforConfigurations.mountUI(sapforConfigurationsPanel);
Global.testingServer.db.sapforConfigurationCommands.mountUI(sapforConfigurationCommandsPanel);
Global.testingServer.db.serverSapfors.mountUI(serverSapforsPanel);
@@ -166,17 +164,17 @@ public class TestingForm implements FormWithSplitters, TestingWindow {
}
@Override
public void ShowCurrentCompiler() {
String title = (Current.HasCompiler() && Current.getCompiler().type.equals(CompilerType.dvm))?
"DVM система: " + Current.getCompiler().description: "DVM система: ?";
String title = (Current.HasCompiler() && Current.getCompiler().type.equals(CompilerType.dvm)) ?
"DVM система: " + Current.getCompiler().description : "DVM система: ?";
testingTabs.setTitleAt(0, title);
}
@Override
public void ShowCurrentServerSapfor() {
testingTabs.setTitleAt(2, "SAPFOR: " + Current.getServerSapfor().version);
testingTabs.setTitleAt(2, "SAPFOR: " + Current.getServerSapfor().version);
}
@Override
public void ShowNoServerSapfor() {
testingTabs.setTitleAt(2, "SAPFOR: ?");
testingTabs.setTitleAt(2, "SAPFOR: ?");
}
@Override
public void ShowCurrentDVMPackage() {
@@ -184,4 +182,10 @@ public class TestingForm implements FormWithSplitters, TestingWindow {
@Override
public void ShowNoCurrentDVMPackage() {
}
@Override
public void CompareDVMRunTasks(DVMRunTask master, DVMRunTask slave) {
dvmTestingRunMaster.ApplyObject(master);
dvmTestingRunSlave.ApplyObject(slave);
testingTabs.setSelectedIndex(1);
}
}