From: tcofoegbu Date: Thu, 24 Mar 2016 11:11:44 +0000 (+0000) Subject: fixed applet build X-Git-Tag: Release_2_10_0~286 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=94a0ba746b70ae1e6396d18a55992dedf86de5dc;p=jalview.git fixed applet build --- diff --git a/src/jalview/io/PDBFeatureSettings.java b/src/jalview/io/PDBFeatureSettings.java index a422a00..83bb37e 100644 --- a/src/jalview/io/PDBFeatureSettings.java +++ b/src/jalview/io/PDBFeatureSettings.java @@ -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; }