JAL-3829 report when 3d-beacons doesn’t provide any models
authorJim Procter <j.procter@dundee.ac.uk>
Wed, 29 Sep 2021 14:30:32 +0000 (15:30 +0100)
committerJim Procter <j.procter@dundee.ac.uk>
Wed, 29 Sep 2021 14:30:32 +0000 (15:30 +0100)
resources/lang/Messages.properties
src/jalview/gui/StructureChooser.java

index fabd577..3b08362 100644 (file)
@@ -1105,6 +1105,8 @@ status.collecting_job_results = Collecting job results.
 status.fetching_db_refs = Fetching db refs
 status.loading_cached_pdb_entries = Loading Cached PDB Entries
 status.searching_for_pdb_structures = Searching for PDB Structures
+status.searching_3d_beacons = Searching 3D Beacons
+status.no_structures_discovered_from_3d_beacons = No models discovered from 3D Beacons
 status.opening_file_for = opening file for
 status.colouring_structures = Colouring structures
 label.font_doesnt_have_letters_defined = Font doesn't have letters defined\nso cannot be used\nwith alignment data
index 9f9de6e..f774c07 100644 (file)
@@ -242,13 +242,19 @@ public class StructureChooser extends GStructureChooser
       @Override
       public void run()
       {
+        progressBar.setProgressBar("status.searching_3d_beacons", progressId);
         // TODO: warn if no accessions discovered
         populateSeqsWithoutSourceDBRef();
         // redo initial discovery - this time with 3d beacons
         // Executors.
         previousWantedFields=null;
-        
         initialStructureDiscovery();
+        if (!isStructuresDiscovered())
+        {
+          progressBar.setProgressBar("status.no_structures_discovered_from_3d_beacons", progressId);
+        } else {
+          progressBar.setProgressBar(null, progressId);
+        }
       }
     };