[Pydev-cvs] org.python.pydev/src/org/python/pydev/editor/correctionassist PythonCorrectionProcesso
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2008-05-03 13:37:30
|
Update of /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor/correctionassist In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12820/src/org/python/pydev/editor/correctionassist Modified Files: PythonCorrectionProcessor.java Log Message: Previous/next method could match 'class' and 'def' on invalid location Index: PythonCorrectionProcessor.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor/correctionassist/PythonCorrectionProcessor.java,v retrieving revision 1.37 retrieving revision 1.38 diff -C2 -d -r1.37 -r1.38 *** PythonCorrectionProcessor.java 1 May 2008 14:26:00 -0000 1.37 --- PythonCorrectionProcessor.java 3 May 2008 13:37:35 -0000 1.38 *************** *** 24,28 **** import org.eclipse.ui.texteditor.spelling.SpellingProblem; import org.python.pydev.core.ExtensionHelper; - import org.python.pydev.core.bundle.ImageCache; import org.python.pydev.core.docutils.PySelection; import org.python.pydev.editor.PyEdit; --- 24,27 ---- *************** *** 78,83 **** private PyEdit edit; - private ImageCache imageCache; - /** * Contains additional assists (used from the jython scripting: pyedit_assign_params_to_attributes.py to add new assists) --- 77,80 ---- *************** *** 125,129 **** public PythonCorrectionProcessor(PyEdit edit) { this.edit = edit; - this.imageCache = new ImageCache(PydevPlugin.getDefault().getBundle().getEntry("/")); } --- 122,125 ---- *************** *** 162,166 **** if (assist.isValid(ps, sel, edit, offset)) { try { ! results.addAll(assist.getProps(ps, imageCache, edit.getEditorFile(), edit.getPythonNature(), edit, offset)); } catch (BadLocationException e) { PydevPlugin.log(e); --- 158,162 ---- if (assist.isValid(ps, sel, edit, offset)) { try { ! results.addAll(assist.getProps(ps, PydevPlugin.getImageCache(), edit.getEditorFile(), edit.getPythonNature(), edit, offset)); } catch (BadLocationException e) { PydevPlugin.log(e); |