fixed applet build
authortcofoegbu <tcnofoegbu@dundee.ac.uk>
Thu, 24 Mar 2016 11:11:44 +0000 (11:11 +0000)
committertcofoegbu <tcnofoegbu@dundee.ac.uk>
Thu, 24 Mar 2016 11:11:44 +0000 (11:11 +0000)
src/jalview/io/PDBFeatureSettings.java

index a422a00..83bb37e 100644 (file)
@@ -3,24 +3,27 @@ package jalview.io;
 import jalview.api.FeatureColourI;
 import jalview.schemes.FeatureColourAdapter;
 import jalview.schemes.FeatureSettingsAdapter;
-import jalview.ws.dbsources.Pdb;
 
 import java.awt.Color;
 
 public class PDBFeatureSettings extends FeatureSettingsAdapter
 {
 
+  public static final String FEATURE_INSERTION = "INSERTION";
+
+  public static final String FEATURE_RES_NUM = "RESNUM";
+
   @Override
   public boolean isFeatureDisplayed(String type)
   {
-    return type.equalsIgnoreCase(Pdb.FEATURE_INSERTION)
-            || type.equalsIgnoreCase(Pdb.FEATURE_RES_NUM);
+    return type.equalsIgnoreCase(FEATURE_INSERTION)
+            || type.equalsIgnoreCase(FEATURE_RES_NUM);
   }
 
   @Override
   public FeatureColourI getFeatureColour(String type)
   {
-    if (type.equalsIgnoreCase(Pdb.FEATURE_INSERTION))
+    if (type.equalsIgnoreCase(FEATURE_INSERTION))
     {
       return new FeatureColourAdapter()
       {
@@ -41,19 +44,19 @@ public class PDBFeatureSettings extends FeatureSettingsAdapter
   @Override
   public int compare(String feature1, String feature2)
   {
-    if (feature1.equalsIgnoreCase(Pdb.FEATURE_INSERTION))
+    if (feature1.equalsIgnoreCase(FEATURE_INSERTION))
     {
       return +1;
     }
-    if (feature2.equalsIgnoreCase(Pdb.FEATURE_INSERTION))
+    if (feature2.equalsIgnoreCase(FEATURE_INSERTION))
     {
       return -1;
     }
-    if (feature1.equalsIgnoreCase(Pdb.FEATURE_RES_NUM))
+    if (feature1.equalsIgnoreCase(FEATURE_RES_NUM))
     {
       return +1;
     }
-    if (feature2.equalsIgnoreCase(Pdb.FEATURE_RES_NUM))
+    if (feature2.equalsIgnoreCase(FEATURE_RES_NUM))
     {
       return -1;
     }