From 30df9d507ac08bdb0c09d929252985c66f2f84ef Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Wed, 29 Sep 2021 15:30:32 +0100 Subject: [PATCH] =?utf8?q?JAL-3829=20report=20when=203d-beacons=20doesn=E2=80?= =?utf8?q?=99t=20provide=20any=20models?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- resources/lang/Messages.properties | 2 ++ src/jalview/gui/StructureChooser.java | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) 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); + } } }; -- 1.7.10.2