Switch to unified view

a/tool/src/GUI/StudioUI4.java b/tool/src/GUI/StudioUI4.java
...
...
707
     * What do we do when a link is clicked by the user?
707
     * What do we do when a link is clicked by the user?
708
     * @param text The URL that is desired
708
     * @param text The URL that is desired
709
     */
709
     */
710
    private void processLinkClicked(WebRequest request, String text) {
710
    private void processLinkClicked(WebRequest request, String text) {
711
        // we always process strings in lower case to ease identification
711
        // we always process strings in lower case to ease identification
712
        String URL = text.toLowerCase();
712
        String URL = text;//.toLowerCase();
713
        System.err.println("SU2006- clicked on link " + URL);
713
        log.write(is.INFO, "SU2006- clicked on link %1", URL);
714
        
714
        
715
        // this is an internal link that needs to be followed
715
        // this is an internal link that needs to be followed
716
        if(URL.startsWith("/")){
716
        if(URL.startsWith("/")){
717
            String script;
717
            String script;
718
            String parameters = "";
718
            String parameters = "";
...
...
787
            core.searchTerm = text;
787
            core.searchTerm = text;
788
            log.write(is.COMMAND, "Search: %1", text);
788
            log.write(is.COMMAND, "Search: %1", text);
789
            //return;
789
            //return;
790
        }
790
        }
791
        
791
        
792
        
793
        
794
            // handle the case:
795
            // create?x=folder
796
            int sep = URL.indexOf("?");
797
            
798
            // get parameters found after the "?" mark
799
            String parameters = URL.substring(sep + 1);
800
            
801
            // the script can't have the full path defined, just a relative path
802
            String temp = baseFilePresent.getAbsolutePath();
803
            String script = temp.replace(core.getPluginsFolder().getAbsolutePath(), "") 
804
                    //+ "/" + URL.substring(0, sep)
805
                    ;
806
//            request.
807
                
808
            // execute the link request
809
            processFormSubmit2(request, script, parameters);
810
        
792
    }
811
    }
793
812
794
    /**
813
    /**
795
     * Handle the case when a form is submitted
814
     * Handle the case when a form is submitted
796
     * @param data 
815
     * @param data 
...
...
840
        String data = ((FormSubmitEvent) e).getData();
859
        String data = ((FormSubmitEvent) e).getData();
841
        // add parameters to our web request object
860
        // add parameters to our web request object
842
        ArrayList<String[]> parameters = html.cleanParameters(data);
861
        ArrayList<String[]> parameters = html.cleanParameters(data);
843
        for(String[] parameter : parameters){
862
        for(String[] parameter : parameters){
844
            request.parameters.add(parameter);
863
            request.parameters.add(parameter);
864
        }
865
        
866
        
867
        // error checking
868
        if(e.getURL() == null){
869
            log.write(is.ERROR, "SU9R4 - getURL is invalid");
870
            return;
845
        }
871
        }
846
        
872
        
847
        String targetScript = e.getURL().getPath();
873
        String targetScript = e.getURL().getPath();
848
                
874
                
849
        // if it does not have a .java extension, add one up
875
        // if it does not have a .java extension, add one up