From 64d9617234aeb01a36fc4b48cc0b8d02e4a84a4d Mon Sep 17 00:00:00 2001 From: Renia Correya Date: Wed, 3 Jul 2024 10:50:51 +0100 Subject: [PATCH] JAL-4436 Code refactoring Replaced the usage of Message.properties in non UI classes --- src/jalview/renderer/ResidueShader.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/jalview/renderer/ResidueShader.java b/src/jalview/renderer/ResidueShader.java index eaccf17..00c228f 100644 --- a/src/jalview/renderer/ResidueShader.java +++ b/src/jalview/renderer/ResidueShader.java @@ -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) -- 1.7.10.2