From 05688ef13325c699644487ce1c08a53927f0eeb0 Mon Sep 17 00:00:00 2001 From: Ben Soares Date: Thu, 21 Jul 2022 21:00:15 +0100 Subject: [PATCH] JAL-4036 add search fieldname to dropdown list --- src/jalview/fts/core/FTSRestClient.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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 -- 1.7.10.2