From: Jim Procter Date: Wed, 29 Sep 2021 14:30:32 +0000 (+0100) Subject: JAL-3829 report when 3d-beacons doesn’t provide any models X-Git-Tag: Release_2_11_2_0~30^2~6 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=30df9d507ac08bdb0c09d929252985c66f2f84ef;p=jalview.git JAL-3829 report when 3d-beacons doesn’t provide any models --- diff --git a/resources/lang/Messages.properties b/resources/lang/Messages.properties index fabd577..3b08362 100644 --- a/resources/lang/Messages.properties +++ b/resources/lang/Messages.properties @@ -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 diff --git a/src/jalview/gui/StructureChooser.java b/src/jalview/gui/StructureChooser.java index 9f9de6e..f774c07 100644 --- a/src/jalview/gui/StructureChooser.java +++ b/src/jalview/gui/StructureChooser.java @@ -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); + } } };