From: tcofoegbu Date: Mon, 24 Apr 2017 15:06:22 +0000 (+0100) Subject: JAL-1648 House keeping X-Git-Tag: Release_2_10_2~3^2~45^2~8 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=d12575dda59477de09c74c4666e2f1d1fac63524;p=jalview.git JAL-1648 House keeping --- diff --git a/src/jalview/gui/Finder.java b/src/jalview/gui/Finder.java index 0f8bb5e..a314cef 100755 --- a/src/jalview/gui/Finder.java +++ b/src/jalview/gui/Finder.java @@ -248,7 +248,7 @@ public class Finder extends GFinder { createNewGroup.setEnabled(false); - String searchString = searchBox.getEditor().getItem().toString().trim(); + String searchString = searchBox.getUserInput().trim(); if (isInvalidSearchString(searchString)) { diff --git a/src/jalview/io/cache/JvCacheableInputBox.java b/src/jalview/io/cache/JvCacheableInputBox.java index 3475d4f..2cf1678 100644 --- a/src/jalview/io/cache/JvCacheableInputBox.java +++ b/src/jalview/io/cache/JvCacheableInputBox.java @@ -95,7 +95,7 @@ public class JvCacheableInputBox extends JComboBox @Override public void actionPerformed(ActionEvent e) { - System.out.println(">>>>> Clear cache items"); + // System.out.println(">>>>> Clear cache items"); setSelectedItem(""); appCache.deleteCacheItems(cacheKey); updateCache(); diff --git a/src/jalview/jbgui/GFinder.java b/src/jalview/jbgui/GFinder.java index 144c67d..ee8a81a 100755 --- a/src/jalview/jbgui/GFinder.java +++ b/src/jalview/jbgui/GFinder.java @@ -209,14 +209,14 @@ public class GFinder extends JPanel public void textfield_caretUpdate(CaretEvent e) { - if (searchBox.getEditor().getItem().toString().indexOf(">") > -1) + if (searchBox.getUserInput().indexOf(">") > -1) { SwingUtilities.invokeLater(new Runnable() { @Override public void run() { - String str = searchBox.getEditor().getItem().toString(); + String str = searchBox.getUserInput(); AlignmentI al = null; try { @@ -231,7 +231,6 @@ public class GFinder extends JPanel jalview.util.Comparison.GapChars, al.getSequenceAt(0) .getSequenceAsString()); - searchBox.setSelectedItem(str); } } });