Revision: 18286 http://sourceforge.net/p/gate/code/18286 Author: markagreenwood Date: 2014-09-03 11:30:30 +0000 (Wed, 03 Sep 2014) Log Message: ----------- GUI actions should be on the GUI thread, so don't spawn a new thread when in an actionPerformed method if what we are going to do is build more GUI stuff
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-03 01:19:45 UTC (rev 18285) +++ gate/trunk/src/main/gate/gui/NameBearerHandle.java 2014-09-03 11:30:30 UTC (rev 18286) @@ -936,9 +936,7 @@ @Override public void actionPerformed(ActionEvent e) { - Runnable runnable = new Runnable() { - @Override - public void run() { + try { DataStoreRegister dsReg = Gate.getDataStoreRegister(); Map<String, DataStore> dsByName = new HashMap<String, DataStore>(); @@ -1066,9 +1064,7 @@ MainFrame.unlockGUI(); } - } - }; - new Thread(runnable).start(); + } }// class SaveToAction extends AbstractAction This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ _______________________________________________ GATE-cvs mailing list GATE-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gate-cvs