continue;
}
- aa.label = MessageManager.getString("label.ssconsensus_label") + " " + ssSource + " " + getName();
- aa.description = ssSource + MessageManager.getString("label.ssconsensus_label") +" for " + getName();
+ aa.label = Constants.SECONDARY_STRUCTURE_CONSENSUS_LABEL + " " + ssSource + " " + getName();
+ aa.description = ssSource + Constants.SECONDARY_STRUCTURE_CONSENSUS_LABEL +" for " + getName();
ssConsensusData = profile;
// preserve width if already set
int aWidth = (aa.annotations != null)
aa.autoCalculated = true;
aa.groupRef = this;
- aa.label = MessageManager.getString("label.ssconsensus_label") + " " + ssSource + " " + getName();
- aa.description = ssSource + MessageManager.getString("label.ssconsensus_label") +" for " + getName();
+ aa.label = Constants.SECONDARY_STRUCTURE_CONSENSUS_LABEL + " " + ssSource + " " + getName();
+ aa.description = ssSource + Constants.SECONDARY_STRUCTURE_CONSENSUS_LABEL +" for " + getName();
ssConsensus.add(aa);
}
import jalview.schemes.NucleotideColourScheme;
import jalview.schemes.ResidueProperties;
import jalview.schemes.ZappoColourScheme;
-import jalview.util.MessageManager;
+import jalview.util.Constants;
import jalview.util.Platform;
public class AnnotationRenderer
}
}
- if(aa.autoCalculated && aa.label.startsWith(MessageManager.getString("label.ssconsensus_label")))
+ if(aa.autoCalculated && aa.label.startsWith(Constants.SECONDARY_STRUCTURE_CONSENSUS_LABEL))
{
if(aa.groupRef != null && aa.groupRef.hSSConsensusProfileMap != null
colour = profcolour.findColour(codonTranslation.charAt(0),
column, null);
}
- if(_aa.label.startsWith(MessageManager.getString("label.ssconsensus_label"))) {
+ if(_aa.label.startsWith(Constants.SECONDARY_STRUCTURE_CONSENSUS_LABEL)) {
colour = AlignmentUtils.getSecondaryStructureAnnotationColour(dc[0]);
}
else
//generic secondary structure provider options
public static final String SS_ALL_PROVIDERS = "All";
public static final String SS_NONE_PROVIDER = "None";
+
+ //Secondary structure consensus label
+ public static final String SECONDARY_STRUCTURE_CONSENSUS_LABEL = "Secondary Structure Consensus";
}