Ignore:
Timestamp:
2018-12-17T23:38:02+13:00 (5 years ago)
Author:
ak19
Message:

Committing the non-EDT related changes to GLI. More changes to setNamesRecursively: for GLI GUI buttons (class GLIButton) these are still standalone rather than compound widgets that contain further widgets within them. So want to set names of GLIButtons (and JButtons) to be their container-class.GLIButton.button-membervar-name. 2. Preferences dialog nulls member handles to important widgets whose names I want to set before the widget is even made visible. In testing mode, I want to prevent these from being set to null so I can set their names in order to access them.

File:
1 edited

Legend:

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

    r31880 r32706  
    172172        tab_pane.setSelectedComponent(general_preferences);
    173173    }
    174    
    175     // Clean up
    176     general_preferences = null;
    177     connection_preferences = null;
    178     frame_location = null;
    179     frame_size = null;
    180     cancel_button = null;
    181     ok_button = null;
    182     button_pane = null;
    183     tab_pane = null;
    184     content_pane = null;
    185 
     174
     175    // Clean up if not in GLI GUI test mode
     176    // If in test mode, I need widgets like tab_pane and buttons to exist
     177    if(!TestingPreparation.TEST_MODE) {
     178        general_preferences = null;
     179        connection_preferences = null;
     180        frame_location = null;
     181        frame_size = null;
     182        cancel_button = null;
     183        ok_button = null;
     184        button_pane = null;
     185        tab_pane = null;
     186        content_pane = null;
     187    }
     188
     189    TestingPreparation.setNamesRecursively(this);
     190   
    186191    setVisible(true);
    187192    }
Note: See TracChangeset for help on using the changeset viewer.