JAL-3485 (enum) constants for Auto-annotation label and preference key
[jalview.git] / src / jalview / gui / AnnotationLabels.java
index 2f62a41..df15c03 100755 (executable)
@@ -35,6 +35,7 @@ import jalview.io.FormatAdapter;
 import jalview.util.Comparison;
 import jalview.util.MessageManager;
 import jalview.util.Platform;
+import jalview.viewmodel.AlignmentViewport.AutoAnnotation;
 
 import java.awt.Color;
 import java.awt.Cursor;
@@ -413,7 +414,7 @@ public class AnnotationLabels extends JPanel
           pop.add(item);
         }
       }
-      else if (label.indexOf("Consensus") > -1)
+      else if (label.indexOf(AutoAnnotation.CONSENSUS.label) > -1)
       {
         addConsensusMenuOptions(ap, aa[selectedRow], pop);