This commit is contained in:
2023-10-26 00:07:29 +03:00
parent 9c324abb63
commit 70eeaf21ca
6 changed files with 60 additions and 2 deletions

View File

@@ -6,7 +6,8 @@ public class SapforTasksPackagesBar extends DataMenuBar {
super("пакеты задач",
PassCode_2021.AbortSapforTaskPackage,
PassCode_2021.DeleteSapforTasksPackage,
PassCode_2021.DownloadSapforTasksPackage
PassCode_2021.DownloadSapforTasksPackage,
PassCode_2021.ShowSapforTaskPackage
);
}
}

View File

@@ -0,0 +1,27 @@
package Visual_DVM_2021.Passes.All;
import Common.Current;
import Common.UI.UI;
import SapforTestingSystem.SapforTasksPackage.SapforTasksPackage;
import Visual_DVM_2021.Passes.Pass_2021;
public class ShowSapforTaskPackage extends Pass_2021<SapforTasksPackage> {
@Override
public String getIconPath() {
return "/icons/VariantsCoverage.png";
}
@Override
public String getButtonText() {
return "";
}
@Override
protected boolean canStart(Object... args) throws Exception {
if (Current.Check(Log, Current.SapforTasksPackage)){
target = Current.getSapforTasksPackage();
return true;
}
return false;
}
@Override
protected void body() throws Exception {
UI.Info("+");
}
}

View File

@@ -304,12 +304,15 @@ public enum PassCode_2021 {
DeleteSapforConfigurationCommand,
//->
DownloadSapforTasksPackage,
ShowSapforTaskPackage, //временный проход на демонстрацию дерева файлов и версий пакета.
//->
TestPass;
public String getDescription() {
switch (this) {
case Undefined:
return "?";
case ShowSapforTaskPackage:
return "Отобразить пакет задач SAPFOR";
case DownloadSapforTasksPackage:
return "Загрузить пакет задач SAPFOR";
case AbortSapforTaskPackage:

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="Visual_DVM_2021.UI.Main.SapforPackageForm">
<grid id="27dc6" binding="content" layout-manager="BorderLayout" hgap="0" vgap="0">
<constraints>
<xy x="20" y="20" width="500" height="400"/>
</constraints>
<properties/>
<border type="none"/>
<children/>
</grid>
</form>

View File

@@ -0,0 +1,10 @@
package Visual_DVM_2021.UI.Main;
import Common.UI.Windows.Dialog.DialogFields;
import javax.swing.*;
public class SapforPackageForm implements DialogFields {
private JPanel content;
public JPanel getContent() {
return content;
}
}