[Pydev-cvs] org.python.pydev/src/org/python/pydev/editor/actions/codefolding PyCollapse.java,1.2,1.3
Brought to you by:
fabioz
From: Aleksandar T. <at...@us...> - 2004-09-24 00:28:15
|
Update of /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor/actions/codefolding In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25127/src/org/python/pydev/editor/actions/codefolding Modified Files: PyCollapse.java Log Message: Added logging of error (instead of e.printStackTrace) Index: PyCollapse.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor/actions/codefolding/PyCollapse.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** PyCollapse.java 16 Aug 2004 13:30:59 -0000 1.2 --- PyCollapse.java 24 Sep 2004 00:28:05 -0000 1.3 *************** *** 9,12 **** --- 9,13 ---- import java.util.Iterator; + import org.eclipse.core.runtime.IStatus; import org.eclipse.jface.action.IAction; import org.eclipse.jface.text.BadLocationException; *************** *** 16,19 **** --- 17,21 ---- import org.python.pydev.editor.actions.PySelection; import org.python.pydev.editor.codefolding.PyProjectionAnnotation; + import org.python.pydev.plugin.PydevPlugin; /** *************** *** 57,63 **** } } catch (BadLocationException e) { ! // TODO Auto-generated catch block ! e.printStackTrace(); ! } } } \ No newline at end of file --- 59,64 ---- } } catch (BadLocationException e) { ! PydevPlugin.log(IStatus.ERROR, "Unexpected error collapsing", e); ! } } } \ No newline at end of file |