JAL-4027 JAL-3858 rename CUSTOM_RENDERER to CONTACT_MATRIX annotation.graph type...
[jalview.git] / src / jalview / io / PContactPredictionFile.java
index 92500c0..de02939 100644 (file)
@@ -44,6 +44,8 @@ import java.util.Map;
  */
 public class PContactPredictionFile extends AlignFile
 {
+  protected static final String CONTACT_PREDICTION = "CONTACT_PREDICTION";
+
   public PContactPredictionFile(String inFile, DataSourceType fileSourceType)
           throws IOException
   {
@@ -106,7 +108,13 @@ public class PContactPredictionFile extends AlignFile
 
         if (cm == null)
         {
-          cm = new ContactMatrix(true);
+          cm = new ContactMatrix(true) {
+            @Override
+            public String getType()
+            {
+              return CONTACT_PREDICTION;
+            }
+          };
           models.add(cm);
         }