[MOBY-guts] biomoby commit
Paul Gordon
gordonp at dev.open-bio.org
Tue Jun 15 22:20:52 UTC 2010
gordonp
Tue Jun 15 18:20:52 EDT 2010
Update of /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui
In directory dev.open-bio.org:/tmp/cvs-serv22051/src/main/ca/ucalgary/seahawk/gui
Modified Files:
FilterSearchWidget.java
Log Message:
Catch bad regex syntax, paint search field red
moby-live/Java/src/main/ca/ucalgary/seahawk/gui FilterSearchWidget.java,1.6,1.7
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/FilterSearchWidget.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/FilterSearchWidget.java 2010/05/04 16:15:47 1.6
+++ /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/FilterSearchWidget.java 2010/06/15 22:20:51 1.7
@@ -2,6 +2,7 @@
import ca.ucalgary.seahawk.util.*;
+import java.awt.Color;
import java.awt.Dimension;
import java.awt.event.*;
import java.net.URL;
@@ -224,8 +225,15 @@
"Delay less than 100ms on search input due to interrupt",
e);
}
- pane.applyFilter(true);
- sem.release();
+
+ try{
+ sf.setBackground(Color.WHITE);
+ pane.applyFilter(true);
+ }catch(Exception e){
+ sf.setBackground(Color.RED);
+ }finally{
+ sem.release();
+ }
}
}
}.start();
More information about the MOBY-guts
mailing list