[Pydev-cvs] org.python.pydev/src/org/python/pydev/editor/codecompletion/shell AbstractShell.java,
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2006-06-28 00:40:10
|
Update of /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor/codecompletion/shell In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14342/src/org/python/pydev/editor/codecompletion/shell Modified Files: AbstractShell.java Log Message: Added possibility of adding debug on a build for code-completion (see the debug constant on PyCodeCompletion) Index: AbstractShell.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor/codecompletion/shell/AbstractShell.java,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -d -r1.31 -r1.32 *** AbstractShell.java 8 Jun 2006 00:41:50 -0000 1.31 --- AbstractShell.java 28 Jun 2006 00:40:07 -0000 1.32 *************** *** 23,26 **** --- 23,27 ---- import org.python.pydev.core.IPythonNature; import org.python.pydev.core.Tuple; + import org.python.pydev.core.log.Log; import org.python.pydev.editor.actions.refactoring.PyRefactorAction.Operation; import org.python.pydev.editor.codecompletion.PyCodeCompletion; *************** *** 69,76 **** private boolean isInOperation = false; ! private void dbg(Object string, int priority) { if(priority <= DEBUG_SHELL){ System.out.println(string); } } --- 70,80 ---- private boolean isInOperation = false; ! private void dbg(String string, int priority) { if(priority <= DEBUG_SHELL){ System.out.println(string); } + if(PyCodeCompletion.DEBUG_CODE_COMPLETION){ + Log.toLogFile(this, string); + } } |