рефакторинг дерева версий пакета. добавил категорию по совпадениям.
This commit is contained in:
@@ -5,6 +5,7 @@ import Common.Database.DBObject;
|
||||
import Common.Utils.Utils;
|
||||
import GlobalData.Tasks.TaskState;
|
||||
import SapforTestingSystem.Json.SapforVersion_json;
|
||||
import SapforTestingSystem.SapforTasksPackage.UI.VersionSummary;
|
||||
import Visual_DVM_2021.Passes.PassCode_2021;
|
||||
import com.google.gson.annotations.Expose;
|
||||
import com.sun.org.glassfish.gmbal.Description;
|
||||
@@ -49,6 +50,9 @@ public class SapforTask extends DBObject {
|
||||
@Description("IGNORE")
|
||||
@Expose
|
||||
public Vector<SapforVersion_json> variants = new Vector<>();
|
||||
//----------
|
||||
@Description("IGNORE")
|
||||
public MatchState match = MatchState.Match;
|
||||
//-----------
|
||||
public SapforTask() {
|
||||
}
|
||||
@@ -61,7 +65,7 @@ public class SapforTask extends DBObject {
|
||||
for (SapforVersion_json version_json : versions) {
|
||||
version_json.init(configurationRoot);
|
||||
//-
|
||||
child = new DefaultMutableTreeNode(version_json);
|
||||
child = new VersionSummary(version_json);
|
||||
if (parent == null) {
|
||||
root = child;
|
||||
parent = child;
|
||||
@@ -72,10 +76,9 @@ public class SapforTask extends DBObject {
|
||||
//-
|
||||
}
|
||||
if (parent != null) {
|
||||
|
||||
for (SapforVersion_json version_json : variants) {
|
||||
version_json.init(configurationRoot);
|
||||
parent.add(new DefaultMutableTreeNode(version_json));
|
||||
parent.add(new VersionSummary(version_json));
|
||||
}
|
||||
}
|
||||
//--
|
||||
|
||||
Reference in New Issue
Block a user