[Pydev-cvs] org.python.pydev/src/org/python/pydev/editor/codecompletion PythonShell.java,1.18,1.19
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2004-10-20 17:51:39
|
Update of /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor/codecompletion In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29807/src/org/python/pydev/editor/codecompletion Modified Files: PythonShell.java Log Message: Index: PythonShell.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor/codecompletion/PythonShell.java,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** PythonShell.java 20 Oct 2004 17:28:44 -0000 1.18 --- PythonShell.java 20 Oct 2004 17:51:28 -0000 1.19 *************** *** 14,17 **** --- 14,18 ---- import java.util.ArrayList; import java.util.HashMap; + import java.util.Iterator; import java.util.List; import java.util.Map; *************** *** 39,42 **** --- 40,53 ---- public static final int OTHERS_SHELL = 2; + public synchronized static void stopAllShells(){ + + for (Iterator iter = shells.values().iterator(); iter.hasNext();) { + PythonShell element = (PythonShell) iter.next(); + if(element != null){ + element.endIt(); + } + } + shells.clear(); + } /** |