no message

This commit is contained in:
2023-10-28 00:18:23 +03:00
parent 7177d02a5e
commit 9be7fa227f
5 changed files with 25 additions and 11 deletions

View File

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

View File

@@ -56,6 +56,8 @@ public class SapforTasksPackageInterface {
DefaultMutableTreeNode taskNode = new DefaultMutableTreeNode(task.test_description);
for (SapforVersion_json version: task.versions){
DefaultMutableTreeNode versionNode = new DefaultMutableTreeNode(version.description);
File
Vector<DBProjectFile> files = getProjectFiles(version.version);
taskNode.add(versionNode);
}
for (SapforVersion_json version: task.variants){

View File

@@ -1,9 +1,14 @@
package Visual_DVM_2021.UI.Main;
import Common.UI.Windows.Dialog.DialogFields;
import SapforTestingSystem.SapforTasksPackage.SapforTasksPackage;
import SapforTestingSystem.SapforTasksPackage.SapforTasksPackageInterface;
import SapforTestingSystem.SapforTasksPackage.SapforTasksPackageTree;
import Visual_DVM_2021.UI.Interface.FormWithSplitters;
import javax.swing.*;
public class SapforPackageFields implements DialogFields, FormWithSplitters {
SapforTasksPackage object = null;
private JPanel content;
public JSplitPane SCY;
private JToolBar tools;
@@ -18,7 +23,14 @@ public class SapforPackageFields implements DialogFields, FormWithSplitters {
return content;
}
public JPanel getTreePanel(){return treePanel;}
public SapforPackageFields(){
public SapforPackageFields(){}
public SapforPackageFields(SapforTasksPackage object_in){
LoadSplitters();
object = object_in;
//--
lObjectName.setText(object.id);
treePanel.add(
new JScrollPane(
new SapforTasksPackageTree(SapforTasksPackageInterface.getTree(object))));
}
}

View File

@@ -4,7 +4,6 @@ import Common.Global;
import Common.UI.TextField.StyledTextField;
import Common.UI.UI;
import SapforTestingSystem.SapforTasksPackage.SapforTasksPackageInterface;
import SapforTestingSystem.SapforTasksPackage.SapforTasksPackageTree;
import Visual_DVM_2021.UI.Interface.FormWithSplitters;
import Visual_DVM_2021.UI.Interface.TestingWindow;
@@ -149,8 +148,10 @@ public class TestingForm implements FormWithSplitters, TestingWindow {
UI.Clear(sapforPackageTreePanel);
if (SapforTasksPackageInterface.isLoaded(Current.getSapforTasksPackage())){
sapforPackageTreePanel.add(
new JScrollPane(
new SapforTasksPackageTree(SapforTasksPackageInterface.getTree(Current.getSapforTasksPackage()))));
new JScrollPane(new SapforPackageFields(Current.getSapforTasksPackage()).getContent())
);
// new JScrollPane(new SapforTasksPackageTree(SapforTasksPackageInterface.getTree(Current.getSapforTasksPackage())))
;
}
}
@Override