Merge branch 'Jalview-BH/JAL-3026-JAL-3063-JAXB' of https://source.jalview.org/git...
authorhansonr <hansonr@STO24954W.ad.stolaf.edu>
Wed, 30 Jan 2019 14:57:38 +0000 (08:57 -0600)
committerhansonr <hansonr@STO24954W.ad.stolaf.edu>
Wed, 30 Jan 2019 14:57:38 +0000 (08:57 -0600)
src/jalview/gui/SequenceFetcher.java
swingjs/SwingJS-site.zip
swingjs/timestamp
swingjs/ver/3.2.4/SwingJS-site.zip
swingjs/ver/3.2.4/timestamp

index 1e6d678..f06bd97 100755 (executable)
@@ -417,13 +417,15 @@ public class SequenceFetcher extends JPanel implements Runnable
     /*
      * tidy inputs and check there is something to search for
      */
-    String text = textArea.getText();
+    String t0 = textArea.getText();
+    String text = text.trim(); // BH 2019.01.30
     if (replacePunctuation.isEnabled() && replacePunctuation.isSelected())
     {
       text = text.replace(",", ";");
     }
     text = text.replaceAll("(\\s|[,; ])+", ";");
-    textArea.setText(text);
+    if (!t0.equals(text)) // BH 2019.01.30 no need to do setting if it is the same
+       textArea.setText(text);
     if (text.isEmpty())
     {
       // todo i18n
index e50b5bb..2d2491f 100644 (file)
Binary files a/swingjs/SwingJS-site.zip and b/swingjs/SwingJS-site.zip differ
index a0bfab3..0376b54 100644 (file)
@@ -1 +1 @@
-20190129150841 
+20190130084836 
index e50b5bb..2d2491f 100644 (file)
Binary files a/swingjs/ver/3.2.4/SwingJS-site.zip and b/swingjs/ver/3.2.4/SwingJS-site.zip differ
index a0bfab3..0376b54 100644 (file)
@@ -1 +1 @@
-20190129150841 
+20190130084836