Switch to side-by-side view

--- a/tool/run/plugins/basic/TreeNodeDetails.java
+++ b/tool/run/plugins/basic/TreeNodeDetails.java
@@ -21,10 +21,7 @@
 import definitions.is;
 import java.awt.Cursor;
 import java.io.File;
-import java.util.Collection;
 import java.util.Enumeration;
-import java.util.HashMap;
-import java.util.Iterator;
 import main.core;
 import main.param;
 import script.Plugin;
@@ -102,6 +99,16 @@
      * Add the files inside this SPDX document
      */
     private void addFiles(SPDXfile spdx, TreeNodeSPDX spdxNode){
+        Enumeration list = spdxNode.children();
+        while(list.hasMoreElements()){
+            TreeNodeSPDX child = (TreeNodeSPDX) list.nextElement();
+            if(child.nodeType == NodeType.sectionFile){
+                // no need to continue, our files were already listed
+                return;
+            }
+        }
+        
+        
         // title of the node that we want to create
         String title = "Files";
         
@@ -285,21 +292,21 @@
     }
     
     
-    /**
-     * Returns the parent path (if available)
-     */
-    private String getParentFolder(String path){
-        // we need to count the number of slashes
-        int lengthOriginal = path.length();
-        String temp = path.replace("/", "");
-        // do we have at least two slashes?
-        if(lengthOriginal > (temp.length() + 1)){
-            // get everything up to last slash
-            return path.substring(0, path.lastIndexOf("/"));
-        }
-        // we have nothing, return the root folder
-        return "./";
-    }
+//    /**
+//     * Returns the parent path (if available)
+//     */
+//    private String getParentFolder(String path){
+//        // we need to count the number of slashes
+//        int lengthOriginal = path.length();
+//        String temp = path.replace("/", "");
+//        // do we have at least two slashes?
+//        if(lengthOriginal > (temp.length() + 1)){
+//            // get everything up to last slash
+//            return path.substring(0, path.lastIndexOf("/"));
+//        }
+//        // we have nothing, return the root folder
+//        return "./";
+//    }
     
     
     /**