|
a/tool/src/main/actions.java |
|
b/tool/src/main/actions.java |
|
... |
|
... |
15 |
|
15 |
|
16 |
import GUI.NodeType;
|
16 |
import GUI.NodeType;
|
17 |
import GUI.TreeNodeSPDX;
|
17 |
import GUI.TreeNodeSPDX;
|
18 |
import GUI.swingUtils;
|
18 |
import GUI.swingUtils;
|
19 |
import static GUI.swingUtils.nodeCreate;
|
19 |
import static GUI.swingUtils.nodeCreate;
|
|
|
20 |
import definitions.definition;
|
20 |
import definitions.is;
|
21 |
import definitions.is;
|
21 |
import java.io.File;
|
22 |
import java.io.File;
|
22 |
import java.io.IOException;
|
23 |
import java.io.IOException;
|
23 |
import java.util.ArrayList;
|
24 |
import java.util.ArrayList;
|
24 |
import java.util.logging.Level;
|
25 |
import java.util.logging.Level;
|
|
... |
|
... |
101 |
// get the root node where we have our treeview
|
102 |
// get the root node where we have our treeview
|
102 |
TreeNodeSPDX rootNode = swingUtils.getRootNode(tree);
|
103 |
TreeNodeSPDX rootNode = swingUtils.getRootNode(tree);
|
103 |
|
104 |
|
104 |
// create the node for hosting our list of SPDX documents
|
105 |
// create the node for hosting our list of SPDX documents
|
105 |
TreeNodeSPDX softwareNode = nodeCreate(
|
106 |
TreeNodeSPDX softwareNode = nodeCreate(
|
106 |
"Software"
|
107 |
definition.nodeSoftware
|
107 |
//+ " (" + fileList.size() + ")"
|
108 |
//+ " (" + fileList.size() + ")"
|
108 |
, NodeType.other, rootNode);
|
109 |
, NodeType.other, rootNode);
|
109 |
// add the identification to this tag
|
110 |
// add the identification to this tag
|
110 |
softwareNode.id = "Software";
|
111 |
softwareNode.id = definition.nodeSoftware;
|
111 |
softwareNode.setIcon("box-label.png");
|
112 |
softwareNode.setIcon("box-label.png");
|
112 |
|
113 |
|
113 |
// create a tree based on folder tree on disk
|
114 |
// create a tree based on folder tree on disk
|
114 |
findFolders(core.getProductsFolder(), 25, softwareNode);
|
115 |
findFolders(core.getProductsFolder(), 25, softwareNode);
|
115 |
|
116 |
|