Ignore:
Timestamp:
2018-12-16T19:57:11+13:00 (5 years ago)
Author:
ak19
Message:

If not testing, don't need GLI's GUI components to be assigned names. Leaves GLI more efficient when run as GLI proper, while GLI will do a bit more work when running GLI for testing.

File:
1 edited

Legend:

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

    r20924 r32689  
    3434public class GetOpt
    3535{
    36     public boolean debug = false;
     36    public boolean testing_mode = false; // true if running GLI for tutorial testing: want names assigned to GUI components
     37   
     38    public boolean debug = false;
    3739    public boolean feedback_enabled = false;
    3840    public boolean no_load = false;
     
    128130            System.exit(0);
    129131            }
     132            // Run GLI in testing mode. Will assign names to GUI Components
     133            else if(argument_name.equals(StaticStrings.TESTING_ARGUMENT)) {
     134            testing_mode = true;
     135            }
    130136            // Run GLI in debug mode. Produces debug log plus extra
    131137            // messages.
Note: See TracChangeset for help on using the changeset viewer.