From: Ben Soares Date: Thu, 21 Jul 2022 20:00:15 +0000 (+0100) Subject: JAL-4036 add search fieldname to dropdown list X-Git-Tag: Release_2_11_2_6~32^2~8 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=05688ef13325c699644487ce1c08a53927f0eeb0;p=jalview.git JAL-4036 add search fieldname to dropdown list --- diff --git a/src/jalview/fts/core/FTSRestClient.java b/src/jalview/fts/core/FTSRestClient.java index ac5b280..2d79432 100644 --- a/src/jalview/fts/core/FTSRestClient.java +++ b/src/jalview/fts/core/FTSRestClient.java @@ -20,8 +20,6 @@ */ package jalview.fts.core; -import java.util.Locale; - import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; @@ -29,13 +27,13 @@ import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; +import java.util.Locale; import java.util.Objects; import jalview.fts.api.FTSDataColumnI; import jalview.fts.api.FTSDataColumnI.FTSDataColumnGroupI; -import jalview.fts.core.FTSDataColumnPreferences.PreferenceSource; -import jalview.fts.service.threedbeacons.TDBeaconsFTSRestClient; import jalview.fts.api.FTSRestClientI; +import jalview.fts.core.FTSDataColumnPreferences.PreferenceSource; /** * Base class providing implementation for common methods defined in @@ -146,7 +144,8 @@ public abstract class FTSRestClient implements FTSRestClientI @Override public String toString() { - return lineData[0]; + return "ALL".equals(getName()) ? getName() + : getName() + " [" + getAltCode() + "]"; } @Override