if (aa != null)
{
- if (ssSource.equals(MessageManager.getString("option.ss_providers_all")))
+ if (ssSource.equals(Constants.SS_ALL_PROVIDERS))
{
ssAnnots.addAll(Arrays.asList(aa));
continue;
if (label.equals(aa.label))
{
- if (selectedSSSource.equals(MessageManager.getString("option.ss_providers_all")))
+ if (selectedSSSource.equals(Constants.SS_ALL_PROVIDERS))
{
ssAlignmentAnnotationForSequences
.computeIfAbsent(aa.sequenceRef.getDatasetSequence(),
import jalview.datamodel.SequenceI;
import jalview.math.Matrix;
import jalview.math.MatrixI;
+import jalview.util.Constants;
import jalview.util.MessageManager;
import java.util.ArrayList;
//secondary structure source parameter selected by the user from the drop down.
String ssSource = params.getSecondaryStructureSource();
if(ssSource == null || ssSource == "") {
- ssSource = MessageManager.getString("option.ss_providers_all");
+ ssSource = Constants.SS_ALL_PROVIDERS;
}
ssRateMatrix = ScoreModels.getInstance().getSecondaryStructureMatrix();
import jalview.renderer.ResidueShader;
import jalview.renderer.ResidueShaderI;
import jalview.schemes.ColourSchemeI;
+import jalview.util.Constants;
import jalview.util.MessageManager;
/**
ssSources = AlignmentUtils.extractSSSourceInAlignmentAnnotation(aa.getAlignmentAnnotation());
}
if(ssSources != null) {
- ssSources.add(MessageManager.getString("option.ss_providers_all"));
+ ssSources.add(Constants.SS_ALL_PROVIDERS);
for(String ssSource : ssSources) {
ProfilesI hSSConsensus = AAFrequency.calculateSS(sequences, startRes, endRes + 1, showSequenceLogo,
// Add other secondary structure labels here if needed
}
- public static final String SS_PROVIDER_PROPERTY = "SS_PROVIDER";
+ public static final String SS_PROVIDER_PROPERTY = "SS_PROVIDER";
+
+ //generic secondary structure provider options
+ public static final String SS_ALL_PROVIDERS = "All";
+ public static final String SS_NONE_PROVIDER = "None";
}
import jalview.structure.StructureSelectionManager;
import jalview.structure.VamsasSource;
import jalview.util.Comparison;
+import jalview.util.Constants;
import jalview.util.MapList;
import jalview.util.MappingUtils;
import jalview.util.MessageManager;
if(aa!=null) {
sources = AlignmentUtils.extractSSSourceInAlignmentAnnotation(aa);
if(sources != null) {
- sources.add(0,MessageManager.getString("option.ss_providers_all"));
+ sources.add(0,Constants.SS_ALL_PROVIDERS);
viewStyle.setSecondaryStructureSources(sources);
}
}
import jalview.datamodel.ProfilesI;
import jalview.datamodel.SequenceI;
import jalview.renderer.ResidueShaderI;
+import jalview.util.Constants;
import jalview.util.MessageManager;
public class SecondaryStructureConsensusThread extends AlignCalcWorker
if(aa!=null) {
sources = AlignmentUtils.extractSSSourceInAlignmentAnnotation(aa);
if(sources != null) {
- sources.add(0, MessageManager.getString("option.ss_providers_all"));
+ sources.add(0, Constants.SS_ALL_PROVIDERS);
alignViewport.setSecondaryStructureSources(sources);
}
}