Revision: 18310 http://sourceforge.net/p/gate/code/18310 Author: markagreenwood Date: 2014-09-11 10:56:00 +0000 (Thu, 11 Sep 2014) Log Message: ----------- fixed a couple more EDT violations
Modified Paths: -------------- gate/trunk/src/main/gate/gui/SerialControllerEditor.java Modified: gate/trunk/src/main/gate/gui/SerialControllerEditor.java =================================================================== --- gate/trunk/src/main/gate/gui/SerialControllerEditor.java 2014-09-11 10:51:21 UTC (rev 18309) +++ gate/trunk/src/main/gate/gui/SerialControllerEditor.java 2014-09-11 10:56:00 UTC (rev 18310) @@ -1628,32 +1628,33 @@ @Override public void actionPerformed(ActionEvent e){ + + if (memberPRsTable.getRowCount() == 0) { + JOptionPane.showMessageDialog(SerialControllerEditor.this, + "Add at least one processing resource in the right table\n" + +"that contains the resources of the application to be run.", + "GATE", JOptionPane.ERROR_MESSAGE); + return; + } + + //stop editing the parameters + try{ + parametersEditor.setParameters(); + }catch(ResourceInstantiationException rie){ + JOptionPane.showMessageDialog( + SerialControllerEditor.this, + "Could not set parameters for the \"" + + parametersEditor.getResource().getName() + + "\" processing resource:\nSee \"Messages\" tab for details!", + "GATE", JOptionPane.ERROR_MESSAGE); + rie.printStackTrace(Err.getPrintWriter()); + return; + } + Runnable runnable = new Runnable(){ @Override public void run(){ - if (memberPRsTable.getRowCount() == 0) { - JOptionPane.showMessageDialog(SerialControllerEditor.this, - "Add at least one processing resource in the right table\n" - +"that contains the resources of the application to be run.", - "GATE", JOptionPane.ERROR_MESSAGE); - return; - } - - //stop editing the parameters - try{ - parametersEditor.setParameters(); - }catch(ResourceInstantiationException rie){ - JOptionPane.showMessageDialog( - SerialControllerEditor.this, - "Could not set parameters for the \"" + - parametersEditor.getResource().getName() + - "\" processing resource:\nSee \"Messages\" tab for details!", - "GATE", JOptionPane.ERROR_MESSAGE); - rie.printStackTrace(Err.getPrintWriter()); - return; - } - if(corpusControllerMode){ //set the corpus Object value = corpusCombo.getSelectedItem(); 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