|
a/tool/src/GUI/swingUtils.java |
|
b/tool/src/GUI/swingUtils.java |
|
... |
|
... |
240 |
for(SPDXfile spdx : core.products){
|
240 |
for(SPDXfile spdx : core.products){
|
241 |
addNodeSPDX(productNode, spdx);
|
241 |
addNodeSPDX(productNode, spdx);
|
242 |
}
|
242 |
}
|
243 |
|
243 |
|
244 |
|
244 |
|
245 |
// now create our library node with all found components
|
245 |
// // now create our library node with all found components
|
246 |
TreeNodeSPDX libraryNode = nodeCreate(
|
246 |
// TreeNodeSPDX libraryNode = nodeCreate(
|
247 |
"Library (" + core.components.size() + ")"
|
247 |
// "Library (" + core.components.size() + ")"
|
248 |
, NodeType.other, nodeRoot);
|
248 |
// , NodeType.other, nodeRoot);
|
249 |
libraryNode.id = "Library";
|
249 |
// libraryNode.id = "Library";
|
250 |
// add all SPDX documents that were found
|
250 |
// // add all SPDX documents that were found
|
251 |
for(SPDXfile spdx : core.components){
|
251 |
// for(SPDXfile spdx : core.components){
|
252 |
addNodeSPDX(libraryNode, spdx);
|
252 |
// addNodeSPDX(libraryNode, spdx);
|
253 |
}
|
253 |
// }
|
254 |
|
254 |
|
255 |
// all finished, write this data on GUI tree list
|
255 |
// all finished, write this data on GUI tree list
|
256 |
DefaultTreeModel treeModel = new DefaultTreeModel(nodeRoot);
|
256 |
DefaultTreeModel treeModel = new DefaultTreeModel(nodeRoot);
|
257 |
tree.setModel(treeModel);
|
257 |
tree.setModel(treeModel);
|
258 |
}
|
258 |
}
|