JAL-3485 (enum) constants for Auto-annotation label and preference key
[jalview.git] / src / jalview / gui / IdPanel.java
index d11d7a1..e647bfb 100755 (executable)
@@ -30,6 +30,7 @@ import jalview.io.SequenceAnnotationReport;
 import jalview.util.MessageManager;
 import jalview.util.Platform;
 import jalview.viewmodel.AlignmentViewport;
+import jalview.viewmodel.AlignmentViewport.AutoAnnotation;
 import jalview.viewmodel.ViewportRanges;
 
 import java.awt.BorderLayout;
@@ -414,7 +415,7 @@ public class IdPanel extends JPanel
       return;
     }
     AlignmentAnnotation ann = anns[pos.annotationIndex];
-    if (!ann.label.contains("Consensus"))
+    if (!ann.label.contains(AutoAnnotation.CONSENSUS.label))
     {
       return;
     }