JAL-4436 Code refactoring
authorRenia Correya <rcorreya001@dundee.ac.uk>
Wed, 3 Jul 2024 09:50:51 +0000 (10:50 +0100)
committerRenia Correya <rcorreya001@dundee.ac.uk>
Wed, 3 Jul 2024 09:50:51 +0000 (10:50 +0100)
Replaced the usage of Message.properties in non UI classes

src/jalview/renderer/ResidueShader.java

index eaccf17..00c228f 100644 (file)
@@ -30,7 +30,7 @@ import jalview.datamodel.SequenceI;
 import jalview.schemes.ColourSchemeI;
 import jalview.util.ColorUtils;
 import jalview.util.Comparison;
-import jalview.util.MessageManager;
+import jalview.util.Constants;
 
 import java.awt.Color;
 import java.util.Map;
@@ -478,13 +478,13 @@ public class ResidueShader implements ResidueShaderI
   protected Color applyByConsensusSecondaryStructure(Color currentColour, int column)
   {
     if (ssConsensusProfileMap == null && 
-            ssConsensusProfileMap.get(MessageManager.getString("option.ss_providers_all")) == null) 
+            ssConsensusProfileMap.get(Constants.SS_ALL_PROVIDERS) == null) 
     {
       return currentColour;
     }
     
     ProfilesI consensusSSProfileForAllSources = 
-            ssConsensusProfileMap.get(MessageManager.getString("option.ss_providers_all"));
+            ssConsensusProfileMap.get(Constants.SS_ALL_PROVIDERS);
     ProfileI profile = consensusSSProfileForAllSources.get(column);
     
     if(profile != null)