рефакторинг объектов сапфора для подготовки к джсону

This commit is contained in:
2025-03-28 18:55:54 +03:00
parent 7178ecbc9c
commit 41b98607cd
12 changed files with 145 additions and 48 deletions

View File

@@ -1,11 +1,14 @@
package _VisualDVM.ProjectData.SapforData.Includes;
import Common.Utils.Utils_;
import _VisualDVM.ProjectData.SapforData.FileObject;
import com.google.gson.annotations.Expose;
import javax.swing.*;
import java.util.List;
import java.util.Vector;
public class FileInfo extends FileObject {
public Vector<DependencyInfo> dependencies = new Vector<>();
@Expose
public List<DependencyInfo> dependencies = new Vector<>();
public FileInfo(String file_in) {
super(file_in);
}
@@ -13,15 +16,12 @@ public class FileInfo extends FileObject {
public String getSelectionText() {
return file;
}
@Override
public boolean isSelectionEnabled() {
return false;
}
@Override
public ImageIcon GetDisabledIcon() {
return Utils_.getIcon("/Common/icons/File.png");
}
@Override
public void SelectAllChildren(boolean select) {
for (DependencyInfo di : dependencies)
di.Select(select);