Changeset 38259 for main/trunk/gli/src


Ignore:
Timestamp:
2023-09-30T21:56:11+13:00 (9 months ago)
Author:
anupama
Message:
  1. Removed some code that was unnecessary after all (it merely *seemed* to help things back when the actual problem was that the minus-webswing parameterwasn't being passed in to GLI because of the += in the webswing xsl's javascript code that appended to the args). 2. Removed or commented out debugging code. 3. I noticed that before adding my own actionName into the webswing xsl's javascript, emacs already reported mismatched braces. This may need further investigation. But counting them, they seem to me to match.
Location:
main/trunk/gli/src/org/greenstone/gatherer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/gli/src/org/greenstone/gatherer/Gatherer.java

    r38258 r38259  
    250250        }
    251251        else if (isWebswing) {
    252 
    253252           
    254253            Configuration.template_config_xml = Configuration.TEMPLATE_CONFIG_PREFIX +  Configuration.CONFIG_WEBSWING_XML;
    255254            Configuration.config_xml = Configuration.CONFIG_WEBSWING_XML;
    256 
    257             String webswing_msg = "username: " + go.username +
    258             "\ngroups: " + go.usergroups +
    259             "\nuid: " + go.userJSessionID;
    260            
    261             JOptionPane.showMessageDialog(null, webswing_msg, "webswing info", JOptionPane.INFORMATION_MESSAGE);
    262             /*
    263               try {
    264               Thread.sleep(5000);
    265               } catch(Exception e) {
    266               System.err.println("Couldn't sleep for 5000 ms");
    267               }*/
    268255           
    269256            if(go.username != null && !go.username.equals("")
    270257               && go.userJSessionID != null && !go.userJSessionID.equals("")) {
    271258           
    272            
    273259            webswingAuthenticator = new WebswingAuthenticator(go.username, go.usergroups, go.userJSessionID);
    274             } else { //if(webswingAuthenticator != null) {
    275             WebswingAuthenticator.clear();
    276             if(webswingAuthenticator != null) {
    277                 webswingAuthenticator = null;
    278             }
    279260            }
    280            
    281261        }
    282262        else {     
     
    21482128        static protected String rawgroups;
    21492129
    2150         static public void clear() {
    2151         username = null;
    2152         groups = null;
    2153         userJSessionID = null;
    2154         rawgroups = null;
    2155         }
    2156 
    21572130        protected void displayError(String error_message) {
    21582131        WarningDialog dialog = new WarningDialog("warning.AuthenticationError", Dictionary.get("WebswingAuthenticationError.Title"), error_message, null, false, false);
  • main/trunk/gli/src/org/greenstone/gatherer/GathererProg.java

    r38258 r38259  
    3131import javax.swing.*;
    3232import org.greenstone.gatherer.util.Utility;
    33 import org.webswing.toolkit.api.WebswingUtil;
    34 import java.util.Arrays;
    3533
    3634/**
     
    6967    String gli_user_directory_path = null;
    7068    if (go.webswing) {
    71         WebswingUtil.getWebswingApi().sendActionEvent("jsConsoleLog", "args are: " + Arrays.toString(args), null);
     69        //org.webswing.toolkit.api.WebswingUtil.getWebswingApi().sendActionEvent("javaToWebswingJSConsoleLog", "args are: " + java.util.Arrays.toString(args), null);
    7270       
    7371        if (go.gsdl3_src_path != null) {
Note: See TracChangeset for help on using the changeset viewer.