json для инклудов
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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() {
|
||||
@@ -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<>();
|
||||
}
|
||||
@@ -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<>();
|
||||
}
|
||||
Reference in New Issue
Block a user