From: gmungoc Date: Thu, 10 May 2018 14:30:43 +0000 (+0100) Subject: JAL-2629 revert to showing Profile parameter even if only 1 choice X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=0adf52a8d1a906eee2c5baad861106916add671b;p=jalview.git JAL-2629 revert to showing Profile parameter even if only 1 choice --- diff --git a/src/jalview/hmmer/HMMERParamStore.java b/src/jalview/hmmer/HMMERParamStore.java index 37ad435..fbab7a9 100644 --- a/src/jalview/hmmer/HMMERParamStore.java +++ b/src/jalview/hmmer/HMMERParamStore.java @@ -199,14 +199,14 @@ public final class HMMERParamStore implements ParamDatastoreI /** * Adds an argument representing the choice of HMM sequences (profiles) - * against which to perform align or search, provided more than one is found + * against which to perform align or search, provided at least one is found * * @param args */ protected void addChoiceOfHmm(List args) { List hmms = viewport.getAlignment().getHmmSequences(); - if (hmms.size() > 1) + if (!hmms.isEmpty()) { List options = new ArrayList<>(); for (SequenceI hmmSeq : hmms)