JAL-1842 adjust code to match changed semantics of FeatureSettingsModelI
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 6 Feb 2020 16:24:46 +0000 (16:24 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 6 Feb 2020 16:24:46 +0000 (16:24 +0000)
src/jalview/ext/ensembl/EnsemblGene.java

index 9c7ce63..461226b 100644 (file)
@@ -629,10 +629,10 @@ public class EnsemblGene extends EnsemblSeqProxy
       SequenceOntologyI so = SequenceOntologyFactory.getInstance();
 
       @Override
-      public boolean isFeatureDisplayed(String type)
+      public boolean isFeatureHidden(String type)
       {
-        return (so.isA(type, SequenceOntologyI.EXON)
-                || so.isA(type, SequenceOntologyI.SEQUENCE_VARIANT));
+        return (!so.isA(type, SequenceOntologyI.EXON)
+                && !so.isA(type, SequenceOntologyI.SEQUENCE_VARIANT));
       }
 
       @Override