From 4576f4f4b7812b69147e2f91e00667f17dc57fed Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Mon, 22 Jun 2020 12:17:59 +0100 Subject: [PATCH] JAL-3664 update colours to enable HMM colouring options after a paste or load of an HMM model --- src/jalview/gui/AlignFrame.java | 2 ++ src/jalview/io/FileLoader.java | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/src/jalview/gui/AlignFrame.java b/src/jalview/gui/AlignFrame.java index 1152a6e..7f8c9c1 100644 --- a/src/jalview/gui/AlignFrame.java +++ b/src/jalview/gui/AlignFrame.java @@ -2480,6 +2480,8 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener, } buildSortByAnnotationScoresMenu(); } + // TODO: this should be triggered by alignment.propertyChanged ? + buildColourMenu(); viewport.firePropertyChange("alignment", null, alignment.getSequences()); if (alignPanels != null) diff --git a/src/jalview/io/FileLoader.java b/src/jalview/io/FileLoader.java index b6701a3..7061938 100755 --- a/src/jalview/io/FileLoader.java +++ b/src/jalview/io/FileLoader.java @@ -454,6 +454,11 @@ public class FileLoader implements Runnable } viewport.getAlignPanel().adjustAnnotationHeight(); viewport.updateSequenceIdColours(); + // update HMM colour options  + if (alignFrame != null) + { + alignFrame.buildColourMenu(); + } } } else -- 1.7.10.2