JAL-3485 (enum) constants for Auto-annotation label and preference key
[jalview.git] / src / jalview / datamodel / AlignmentAnnotation.java
index ee9389c..48f840d 100755 (executable)
@@ -23,6 +23,7 @@ package jalview.datamodel;
 import jalview.analysis.Rna;
 import jalview.analysis.SecStrConsensus.SimpleBP;
 import jalview.analysis.WUSSParseException;
+import jalview.viewmodel.AlignmentViewport.AutoAnnotation;
 
 import java.util.ArrayList;
 import java.util.Arrays;
@@ -924,7 +925,7 @@ public class AlignmentAnnotation
       buffer.append(", ");
     }
     // TODO: remove disgusting hack for 'special' treatment of consensus line.
-    if (label.indexOf("Consensus") == 0)
+    if (label.indexOf(AutoAnnotation.CONSENSUS.label) == 0)
     {
       buffer.append("\n");