Ignore:
Timestamp:
2019-03-25T18:13:17+13:00 (5 years ago)
Author:
ak19
Message:

Changes to reinstate SwingUtilities.invokeLater() calls added for GUI testing so that it will still work with the remote GS server. Note however that new Gatherer() calls Gatherer.init() does a lot of GUI stuff too depending on circumstances (such as requestGLIServerURL(), missingGSDL(), missingExec(), popupFedoraInfo(), initCollectDirectoryPath() which calls nonStandardCollectHomeMessage()). But Gatherer.init() is not yet wrapped in an invokeLater(), so this will conflict with GLI GUI testing.

File:
1 edited

Legend:

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

    r32920 r32923  
    7676    // Create an instance of the Gatherer class, which will parse the args and prepare the rest of the GLI
    7777    Gatherer gatherer = new Gatherer(args);
    78    
    79     // Display the GUI immediately
    80     gatherer.openGUI();
    81    
    82     /* 
     78       
    8379    // TESTING circumventing the old GUI event dispatch thread exceptions in GLI. Follows
    8480    // https://docs.oracle.com/javase/6/docs/api/javax/swing/package-summary.html#threading
     
    9086    SwingUtilities.invokeLater(new Runnable() {
    9187            public void run() {
    92         // These lines used to be done immediate after setGLIDirectoryPath() call above
    93         // but are now inside an invokeLater().
    94        
    95         // Create an instance of the Gatherer class, which will parse the args and prepare the rest of the GLI
    96         Gatherer gatherer = new Gatherer(args);
    97        
     88        // This line used to be done immediately after setGLIDirectoryPath()
     89        // and new Gatherer() above, but is now inside an invokeLater() to do graphical stuff here.
     90
    9891        // Display the GUI immediately
    9992        gatherer.openGUI();
    10093            }
    10194        });
    102     */
     95   
    10396    }
    10497}
Note: See TracChangeset for help on using the changeset viewer.