Switch to unified view

a/tool/src/GUI/StudioUI2.java b/tool/src/GUI/StudioUI2.java
...
...
28
import javax.swing.UnsupportedLookAndFeelException;
28
import javax.swing.UnsupportedLookAndFeelException;
29
import javax.swing.event.HyperlinkEvent;
29
import javax.swing.event.HyperlinkEvent;
30
import javax.swing.event.HyperlinkListener;
30
import javax.swing.event.HyperlinkListener;
31
import javax.swing.text.html.FormSubmitEvent;
31
import javax.swing.text.html.FormSubmitEvent;
32
import javax.swing.text.html.HTMLEditorKit;
32
import javax.swing.text.html.HTMLEditorKit;
33
import main.actions;
33
import main.controller;
34
import main.controller;
34
import script.RunPlugins;
35
import script.RunPlugins;
35
import script.log;
36
import script.log;
36
import spdxlib.SPDXfile;
37
import spdxlib.SPDXfile;
37
import main.core;
38
import main.core;
...
...
306
    private javax.swing.JEditorPane text;
307
    private javax.swing.JEditorPane text;
307
    private javax.swing.JTree tree;
308
    private javax.swing.JTree tree;
308
    // End of variables declaration//GEN-END:variables
309
    // End of variables declaration//GEN-END:variables
309
310
310
    public void doSettings() {
311
    public void doSettings() {
311
        swingUtils.populateTree(tree);
312
        //swingUtils.populateTree(tree);
313
        
314
        // the basic root node that is always needed
315
        swingUtils.nodeAddRoot(tree);
312
        
316
         
317
        // now add all products that we can find
318
        actions.addTreeSPDX(tree);
313
           
319
        
314
        
320
        
315
         // set our first product as the default thing when adding
321
         // set our first product as the default thing when adding
316
         // more components from the library
322
         // more components from the library
317
//        if(core.products != null) 
323
//        if(core.products != null) 
318
//           if(core.products.isEmpty() == false){
324
//           if(core.products.isEmpty() == false){
...
...
352
            
358
            
353
            // this is needed to ensure we get line-wrapping
359
            // this is needed to ensure we get line-wrapping
354
            jScrollPane2.setViewportView(text);
360
            jScrollPane2.setViewportView(text);
355
           
361
           
356
            // change our title
362
            // change our title
357
            this.setTitle("TripleCheck");
363
            setTitle("TripleCheck");
358
           
364
           
359
            doFrontScreen();
365
            doFrontScreen();
360
    }
366
    }
361
367
362
    public JTree getTree(){
368
    public JTree getTree(){
...
...
632
            newRequest.requestOrigin = RequestOrigin.GUI_tree;
638
            newRequest.requestOrigin = RequestOrigin.GUI_tree;
633
            newRequest.BaseFolder = node.scriptFolder;
639
            newRequest.BaseFolder = node.scriptFolder;
634
            newRequest.scriptFile = node.scriptFile;
640
            newRequest.scriptFile = node.scriptFile;
635
            newRequest.scriptFolder = node.scriptFolder;
641
            newRequest.scriptFolder = node.scriptFolder;
636
            newRequest.scriptMethod = node.scriptMethod;
642
            newRequest.scriptMethod = node.scriptMethod;
643
            newRequest.parameters = node.scriptParameters;
637
            //newRequest.addParameter("method", node.scriptMethod);
644
            //newRequest.addParameter("method", node.scriptMethod);
638
            controller.process(newRequest);
645
            controller.process(newRequest);
639
        }
646
        }
640
    }
647
    }
641
648