From: Jim Procter Date: Mon, 22 Jun 2020 11:17:59 +0000 (+0100) Subject: JAL-3664 update colours to enable HMM colouring options after a paste or load of... X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=4576f4f4b7812b69147e2f91e00667f17dc57fed;p=jalview.git JAL-3664 update colours to enable HMM colouring options after a paste or load of an HMM model --- 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