[Bprocessor-commit] gui/src/net/sourceforge/bprocessor/gui GUI.java, 1.85, 1.86
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2007-12-12 10:41:09
|
Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv31495/src/net/sourceforge/bprocessor/gui Modified Files: GUI.java Log Message: Cut spacechecking code Index: GUI.java =================================================================== RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/GUI.java,v retrieving revision 1.85 retrieving revision 1.86 diff -C2 -d -r1.85 -r1.86 *** GUI.java 9 Dec 2007 08:26:44 -0000 1.85 --- GUI.java 12 Dec 2007 10:41:11 -0000 1.86 *************** *** 42,46 **** import java.util.Collection; - import java.util.ConcurrentModificationException; import java.util.Iterator; import java.util.LinkedList; --- 42,45 ---- *************** *** 759,800 **** return closed; } - - /** - * Checks if spaces are closed. - */ - private class SpaceChecker extends Thread { - /** - * The constructor - */ - SpaceChecker() { - super(); - } - - /** - * The run - */ - @Override - public void run() { - while (true) { - try { - Iterator it = Project.getInstance().getSpaces().iterator(); - while (it.hasNext()) { - Space sp = (Space)it.next(); - if (sp.isClosed()) { - closedSpaces.add(sp); - } else { - closedSpaces.remove(sp); - } - } - sleep(1000); - } catch (ConcurrentModificationException e) { - //Something is done to the spaces while they are being checked. - log.info("Concurrent modification in spacechecker"); - } catch (Exception e) { - e.printStackTrace(); - } - } - } - } /** --- 758,761 ---- |