[Pydev-cvs] org.python.pydev/src/org/python/pydev/editor/correctionassist PythonCorrectionProcessor.
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2005-04-13 13:03:03
|
Update of /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor/correctionassist In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14483/src/org/python/pydev/editor/correctionassist Modified Files: PythonCorrectionProcessor.java Log Message: Refactoring content assistants Index: PythonCorrectionProcessor.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor/correctionassist/PythonCorrectionProcessor.java,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** PythonCorrectionProcessor.java 12 Apr 2005 16:29:42 -0000 1.20 --- PythonCorrectionProcessor.java 13 Apr 2005 13:02:22 -0000 1.21 *************** *** 19,22 **** --- 19,24 ---- import org.python.pydev.editor.actions.PySelection; import org.python.pydev.editor.correctionassist.heuristics.AssistAssign; + import org.python.pydev.editor.correctionassist.heuristics.AssistCreateClassInModule; + import org.python.pydev.editor.correctionassist.heuristics.AssistCreateMethodInModule; import org.python.pydev.editor.correctionassist.heuristics.AssistCreations; import org.python.pydev.editor.correctionassist.heuristics.AssistDocString; *************** *** 99,112 **** new AssistOverride(), new AssistAssign(), ! new AssistCreations() }; for (int i = 0; i < assists.length; i++) { ! if(assists[i].isValid(ps, sel)){ ! try { ! results.addAll(assists[i].getProps(ps, imageCache, edit.getEditorFile(), edit.getPythonNature(), edit.getPythonModel())); ! } catch (BadLocationException e) { ! PydevPlugin.log(e); } } } --- 101,121 ---- new AssistOverride(), new AssistAssign(), ! new AssistCreations(), ! new AssistCreateMethodInModule(), ! new AssistCreateClassInModule() }; for (int i = 0; i < assists.length; i++) { ! try { ! if (assists[i].isValid(ps, sel)) { ! try { ! results.addAll(assists[i].getProps(ps, imageCache, edit.getEditorFile(), edit.getPythonNature(), edit ! .getPythonModel())); ! } catch (BadLocationException e) { ! PydevPlugin.log(e); ! } } + } catch (Exception e) { + PydevPlugin.log(e); } } |