2024-10-09 22:21:57 +03:00
|
|
|
package _VisualDVM.ProjectData.SapforData.Includes;
|
2024-10-11 00:00:30 +03:00
|
|
|
import Common.Utils.Utils_;
|
2024-10-09 22:21:57 +03:00
|
|
|
import _VisualDVM.ProjectData.SapforData.FileObject;
|
2025-03-28 18:55:54 +03:00
|
|
|
import com.google.gson.annotations.Expose;
|
2023-09-17 22:13:42 +03:00
|
|
|
|
|
|
|
|
import javax.swing.*;
|
2025-03-28 18:55:54 +03:00
|
|
|
import java.util.List;
|
2023-09-17 22:13:42 +03:00
|
|
|
import java.util.Vector;
|
|
|
|
|
public class FileInfo extends FileObject {
|
2025-03-28 18:55:54 +03:00
|
|
|
@Expose
|
|
|
|
|
public List<DependencyInfo> dependencies = new Vector<>();
|
2023-09-17 22:13:42 +03:00
|
|
|
public FileInfo(String file_in) {
|
|
|
|
|
super(file_in);
|
|
|
|
|
}
|
|
|
|
|
@Override
|
|
|
|
|
public String getSelectionText() {
|
|
|
|
|
return file;
|
|
|
|
|
}
|
|
|
|
|
public boolean isSelectionEnabled() {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
public ImageIcon GetDisabledIcon() {
|
2024-10-15 16:58:20 +03:00
|
|
|
return Utils_.getIcon("/Common/icons/File.png");
|
2023-09-17 22:13:42 +03:00
|
|
|
}
|
|
|
|
|
public void SelectAllChildren(boolean select) {
|
|
|
|
|
for (DependencyInfo di : dependencies)
|
|
|
|
|
di.Select(select);
|
|
|
|
|
}
|
|
|
|
|
}
|