From: gmungoc Date: Thu, 6 Feb 2020 16:24:46 +0000 (+0000) Subject: JAL-1842 adjust code to match changed semantics of FeatureSettingsModelI X-Git-Tag: Release_2_11_2_0~40^2~1 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=c904a8042a8fb0894738c98fc67459766532571d;p=jalview.git JAL-1842 adjust code to match changed semantics of FeatureSettingsModelI --- diff --git a/src/jalview/ext/ensembl/EnsemblGene.java b/src/jalview/ext/ensembl/EnsemblGene.java index 0e3d84b..ac756fc 100644 --- a/src/jalview/ext/ensembl/EnsemblGene.java +++ b/src/jalview/ext/ensembl/EnsemblGene.java @@ -628,10 +628,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