From: James Procter Date: Fri, 1 Sep 2023 15:22:30 +0000 (+0100) Subject: JAL-4124 need to repaint alignFrames imported from project after resolving references... X-Git-Tag: Release_2_11_4_0~124^2~5 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=e91b3bef83f320e13c59ad5d21d69f0abf3d7507;p=jalview.git JAL-4124 need to repaint alignFrames imported from project after resolving references so PAE matrices are displayed --- diff --git a/src/jalview/project/Jalview2XML.java b/src/jalview/project/Jalview2XML.java index 627aba3..d1e836e 100644 --- a/src/jalview/project/Jalview2XML.java +++ b/src/jalview/project/Jalview2XML.java @@ -3137,6 +3137,7 @@ public class Jalview2XML initSeqRefs(); } AlignFrame af = null, _af = null; + List toRepaint=new ArrayList(); IdentityHashMap importedDatasets = new IdentityHashMap<>(); Map gatherToThisFrame = new HashMap<>(); final String file = jprovider.getFilename(); @@ -3171,6 +3172,7 @@ public class Jalview2XML if (_af != null && object.getViewport().size() > 0) // getJalviewModelSequence().getViewportCount() > 0) { + toRepaint.add(_af); if (af == null) { // store a reference to the first view @@ -3200,6 +3202,10 @@ public class Jalview2XML } while (jarentry != null); jin.close(); resolveFrefedSequences(); + for (AlignFrame alignFrame:toRepaint) + { + alignFrame.repaint(); + } } catch (IOException ex) { ex.printStackTrace();