Ignore:
Timestamp:
2018-12-18T19:23:21+13:00 (5 years ago)
Author:
ak19
Message:
  1. Some dialogs do not exist when GLI starts up and becomes visible. These dialogs only get created when the user launches them, such as the new collection dialog appearing when you choose it through the file menu. When testing, such locally instantiated dialogs need to have setNamesRecursively() called on their GUI components too before setVisible() is called on them. 2. Leaving in instances of what I think are safe calls to SwingUntilities.invokeLater() to fix EDT violation exceptions detected during testing, but not committing those cases where I've made the change that actually need proper fixing by using SwingWorker threads.
File:
1 edited

Legend:

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

    r31638 r32712  
    6060import org.greenstone.gatherer.gui.LockFileDialog;
    6161import org.greenstone.gatherer.gui.ModalProgressPopup;
     62import org.greenstone.gatherer.gui.TestingPreparation;
    6263import org.greenstone.gatherer.gui.WarningDialog;
    6364import org.greenstone.gatherer.metadata.DocXMLFileManager;
     
    551552    // Create the collection on a separate thread so the progress bar updates correctly
    552553    (new CreateCollectionTask(description, email, name, title, base_collection_directory, metadata_sets, create_collection_progress_popup)).start();
     554    //SwingUtilities.invokeLater(new CreateCollectionTask(description, email, name, title, base_collection_directory, metadata_sets, create_collection_progress_popup));
    553555    }
    554556
     
    12851287    // Load the collection on a separate thread so the progress bar updates correctly
    12861288    (new LoadCollectionTask(collection_file_path, load_collection_progress_popup)).start();
     1289    //SwingUtilities.invokeLater(new LoadCollectionTask(collection_file_path, load_collection_progress_popup));
    12871290    }
    12881291
     
    13941397    if (lock_file.exists()) {
    13951398        LockFileDialog dialog = new LockFileDialog(Gatherer.g_man, collection_name, lock_file);
     1399        TestingPreparation.setNamesRecursively(dialog);
    13961400        int choice = dialog.getChoice();
    13971401        dialog.dispose();
Note: See TracChangeset for help on using the changeset viewer.