Revision: 18304
          http://sourceforge.net/p/gate/code/18304
Author:   markagreenwood
Date:     2014-09-10 08:21:37 +0000 (Wed, 10 Sep 2014)
Log Message:
-----------
fixed another EDT violation that happens if you try and reinit a jape grammar 
with a syntax error

Modified Paths:
--------------
    gate/trunk/src/main/gate/gui/NameBearerHandle.java

Modified: gate/trunk/src/main/gate/gui/NameBearerHandle.java
===================================================================
--- gate/trunk/src/main/gate/gui/NameBearerHandle.java  2014-09-10 01:19:36 UTC 
(rev 18303)
+++ gate/trunk/src/main/gate/gui/NameBearerHandle.java  2014-09-10 08:21:37 UTC 
(rev 18304)
@@ -1135,10 +1135,18 @@
           catch(ResourceInstantiationException rie) {
             fireStatusChanged("reinitialisation failed");
             rie.printStackTrace(Err.getPrintWriter());
-            JOptionPane.showMessageDialog(getLargeView(), "Reload failed!\n "
-                    + "See \"Messages\" tab for details!", "GATE",
-                    JOptionPane.ERROR_MESSAGE);
             fireProcessFinished();
+            
+            SwingUtilities.invokeLater(new Runnable() {
+
+              @Override
+              public void run() {
+                JOptionPane.showMessageDialog(getLargeView(), "Reload 
failed!\n "
+                        + "See \"Messages\" tab for details!", "GATE",
+                        JOptionPane.ERROR_MESSAGE);                
+              }              
+            });
+            
           }
         }// public void run()
       };

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
GATE-cvs mailing list
GATE-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to