Исправление недочета с spf директивами. Пустые версии пакета отображаются серым. v++
This commit is contained in:
@@ -4,6 +4,7 @@ import Common.Current;
|
||||
import Common.Database.DBObject;
|
||||
import Common.Utils.Utils;
|
||||
import GlobalData.Tasks.TaskState;
|
||||
import TestingSystem.SAPFOR.Json.SapforVersionState;
|
||||
import TestingSystem.SAPFOR.Json.SapforVersion_json;
|
||||
import TestingSystem.SAPFOR.SapforTasksPackage.UI.VersionSummary;
|
||||
import Visual_DVM_2021.Passes.PassCode_2021;
|
||||
@@ -75,29 +76,31 @@ public class SapforTask extends DBObject {
|
||||
public SapforTask() {
|
||||
}
|
||||
public DefaultMutableTreeNode getVersionsTree(File configurationRoot) {
|
||||
DefaultMutableTreeNode root = null;
|
||||
DefaultMutableTreeNode child = null;
|
||||
DefaultMutableTreeNode parent = null;
|
||||
VersionSummary root = null;
|
||||
VersionSummary child = null;
|
||||
VersionSummary parent = null;
|
||||
//--
|
||||
for (SapforVersion_json version_json : versions) {
|
||||
version_json.init(configurationRoot);
|
||||
version_json.task = this;
|
||||
//-
|
||||
child = new VersionSummary(version_json);
|
||||
child = new VersionSummary(version_json, version_json.init(configurationRoot));
|
||||
if (parent == null) {
|
||||
root = child;
|
||||
parent = child;
|
||||
} else {
|
||||
parent.add(child);
|
||||
parent = child;
|
||||
if (!child.state.equals(SapforVersionState.Empty)) {
|
||||
parent.add(child);
|
||||
parent = child;
|
||||
}
|
||||
}
|
||||
//-
|
||||
}
|
||||
if (parent != null) {
|
||||
for (SapforVersion_json version_json : variants) {
|
||||
version_json.init(configurationRoot);
|
||||
version_json.task = this;
|
||||
parent.add(new VersionSummary(version_json));
|
||||
if (!child.state.equals(SapforVersionState.Empty)) {
|
||||
parent.add(new VersionSummary(version_json, version_json.init(configurationRoot)));
|
||||
}
|
||||
}
|
||||
}
|
||||
//--
|
||||
|
||||
Reference in New Issue
Block a user