отображение задач из json
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Constants;
|
||||
import Common.Current;
|
||||
import Common.Global;
|
||||
import Common.Utils.Utils;
|
||||
import Repository.Server.ServerCode;
|
||||
import Repository.Server.ServerExchangeUnit_2021;
|
||||
@@ -16,7 +17,7 @@ import java.util.Date;
|
||||
public class DownloadDVMPackage extends TestingSystemPass<DVMPackage> {
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/icons/Apply.png";
|
||||
return "/icons/ComponentsActual.png";
|
||||
}
|
||||
@Override
|
||||
public String getButtonText() {
|
||||
@@ -37,11 +38,12 @@ public class DownloadDVMPackage extends TestingSystemPass<DVMPackage> {
|
||||
loaded = new File(workspace, Constants.LOADED);
|
||||
//--
|
||||
if (!target.state.equals(TasksPackageState.Done)){
|
||||
Log.Writeln_("Возможно скачать только завершённый пакет!");
|
||||
Log.Writeln_("Возможно скачать и отобразить задачи только завершённого пакета!");
|
||||
return false;
|
||||
}
|
||||
if (loaded.exists()){
|
||||
Log.Writeln_("Пакет уже загружен");
|
||||
/// Log.Writeln_("Пакет уже загружен");
|
||||
Global.testingServer.db.dvmRunTasks.ShowDVMPackage(target);
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
@@ -65,4 +67,8 @@ public class DownloadDVMPackage extends TestingSystemPass<DVMPackage> {
|
||||
passes.get(PassCode_2021.UnzipFolderPass).Do(results_zip.getAbsolutePath(), workspace.getAbsolutePath());
|
||||
FileUtils.writeStringToFile(loaded, new Date().toString());
|
||||
}
|
||||
@Override
|
||||
protected void showDone() throws Exception {
|
||||
Global.testingServer.db.dvmRunTasks.ShowDVMPackage(target);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,4 +20,6 @@ public interface TestingWindow extends VisualizerForm {
|
||||
void ShowCurrentCompiler();
|
||||
void ShowCurrentServerSapfor();
|
||||
void ShowNoServerSapfor();
|
||||
void ShowCurrentDVMPackage();
|
||||
void ShowNoCurrentDVMPackage();
|
||||
}
|
||||
|
||||
@@ -116,7 +116,7 @@
|
||||
<properties/>
|
||||
<border type="none"/>
|
||||
<children>
|
||||
<grid id="242a7" binding="testsRunTasksPanel" layout-manager="BorderLayout" hgap="0" vgap="0">
|
||||
<grid id="242a7" binding="dvmRunTasksPanel" layout-manager="BorderLayout" hgap="0" vgap="0">
|
||||
<constraints border-constraint="Center"/>
|
||||
<properties>
|
||||
<minimumSize width="0" height="150"/>
|
||||
|
||||
@@ -30,7 +30,7 @@ public class TestingForm implements FormWithSplitters, TestingWindow {
|
||||
//-
|
||||
//---
|
||||
private JTabbedPane testingTabs;
|
||||
private JPanel testsRunTasksPanel;
|
||||
private JPanel dvmRunTasksPanel;
|
||||
private JToolBar testsResultsTools;
|
||||
private JButton bChangeKernels;
|
||||
private JTextField filterName;
|
||||
@@ -87,6 +87,7 @@ 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);
|
||||
@@ -102,6 +103,7 @@ public class TestingForm implements FormWithSplitters, TestingWindow {
|
||||
//--
|
||||
Global.testingServer.db.serverSapfors.ShowUI();
|
||||
Global.testingServer.db.sapforConfigurations.ShowUI();
|
||||
Global.testingServer.db.dvmRunTasks.ShowUI();
|
||||
//---
|
||||
if (Global.properties.AutoCheckTesting)
|
||||
TestingServer.TimerOn();
|
||||
@@ -162,13 +164,13 @@ public class TestingForm implements FormWithSplitters, TestingWindow {
|
||||
@Override
|
||||
public void RemountTestTable() {
|
||||
UI.Clear(dvmPackagesPanel);
|
||||
UI.Clear(testsRunTasksPanel);
|
||||
UI.Clear(dvmRunTasksPanel);
|
||||
UI.Clear(sapforPackagesPanel);
|
||||
UI.Clear(sapforTasksPanel);
|
||||
DropSapforComparison();
|
||||
//-->>
|
||||
Global.testingServer.account_db.packages.mountUI(dvmPackagesPanel);
|
||||
Global.testingServer.account_db.testRunTasks.mountUI(testsRunTasksPanel);
|
||||
Global.testingServer.account_db.testRunTasks.mountUI(dvmRunTasksPanel);
|
||||
Global.testingServer.account_db.sapforTasksPackages.mountUI(sapforPackagesPanel);
|
||||
Global.testingServer.account_db.sapforTasks.mountUI(sapforTasksPanel);
|
||||
}
|
||||
@@ -190,4 +192,10 @@ public class TestingForm implements FormWithSplitters, TestingWindow {
|
||||
public void ShowNoServerSapfor() {
|
||||
testingTabs.setTitleAt(1, "SAPFOR: ?");
|
||||
}
|
||||
@Override
|
||||
public void ShowCurrentDVMPackage() {
|
||||
}
|
||||
@Override
|
||||
public void ShowNoCurrentDVMPackage() {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user