json для инклудов

This commit is contained in:
2025-04-14 21:44:19 +03:00
parent cb1f19cfb7
commit 28eee09056
8 changed files with 47 additions and 21 deletions

View File

@@ -8,7 +8,7 @@ import java.util.List;
import java.util.Vector;
public class FileInfo extends FileObject {
@Expose
public List<DependencyInfo> dependencies = new Vector<>();
public List<Include> dependencies = new Vector<>();
public FileInfo(String file_in) {
super(file_in);
}
@@ -23,7 +23,7 @@ public class FileInfo extends FileObject {
return Utils_.getIcon("/Common/icons/File.png");
}
public void SelectAllChildren(boolean select) {
for (DependencyInfo di : dependencies)
for (Include di : dependencies)
di.Select(select);
}
}

View File

@@ -1,9 +1,15 @@
package _VisualDVM.ProjectData.SapforData.Includes;
import Common.Utils.Utils_;
import _VisualDVM.ProjectData.SapforData.FileObject;
public class DependencyInfo extends FileObject {
public DependencyInfo(String file_in) {
import com.google.gson.annotations.Expose;
public class Include extends FileObject {
//JSON-
@Expose
public String dependencyName= "";
//-----
public Include(String file_in, String dependencyName_in) {
super(file_in);
dependencyName = dependencyName_in;
}
@Override
public String getSelectionText() {

View File

@@ -0,0 +1,12 @@
package _VisualDVM.ProjectData.SapforData.Includes.Json;
import _VisualDVM.ProjectData.SapforData.Includes.Include;
import com.google.gson.annotations.Expose;
import java.util.List;
import java.util.Vector;
public class FileIncludesJson {
@Expose
public String file;
@Expose
public List<Include> includes = new Vector<>();
}

View File

@@ -0,0 +1,8 @@
package _VisualDVM.ProjectData.SapforData.Includes.Json;
import com.google.gson.annotations.Expose;
import java.util.Vector;
public class IncludesJson {
@Expose
public Vector<FileIncludesJson> allIncludes = new Vector<>();
}