Merge branch 'releases/Release_2_10_2b1_Branch'
authorJim Procter <jprocter@issues.jalview.org>
Wed, 6 Sep 2017 10:58:06 +0000 (11:58 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Wed, 6 Sep 2017 10:58:06 +0000 (11:58 +0100)
help/html/releases.html
src/jalview/gui/AnnotationColourChooser.java

index 5a1e324..e72c8a3 100755 (executable)
@@ -136,6 +136,10 @@ li:before {
               dragging a selected region off the visible region of the
               alignment
             </li>
+            <li>
+              <!-- JAL-2724 -->Cannot apply annotation based
+              colourscheme to all groups in a view
+            </li>
           </ul>
         </div></td>
     
index f088791..8d123bb 100644 (file)
@@ -456,22 +456,8 @@ public class AnnotationColourChooser extends AnnotationRowFilter
         {
           continue;
         }
-
-        if (useOriginalColours.isSelected())
-        {
-          sg.setColourScheme(new AnnotationColourGradient(currentAnn,
-                  sg.getColourScheme(), selectedThresholdOption));
-          ((AnnotationColourGradient) sg.cs)
-                  .setSeqAssociated(seqAssociated.isSelected());
-        }
-        else
-        {
-          sg.setColourScheme(new AnnotationColourGradient(currentAnn,
-                  minColour.getBackground(), maxColour.getBackground(),
-                  selectedThresholdOption));
-          ((AnnotationColourGradient) sg.cs)
-                  .setSeqAssociated(seqAssociated.isSelected());
-        }
+        sg.setColourScheme(
+                acg.getInstance(sg, ap.av.getHiddenRepSequences()));
       }
     }
     return false;