[Pydev-cvs] org.python.pydev/src/org/python/pydev/editor/correctionassist/heuristics AssistCreateMet
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2005-04-13 15:46:00
|
Update of /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor/correctionassist/heuristics In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14117/src/org/python/pydev/editor/correctionassist/heuristics Modified Files: AssistCreateMethodInClass.java Log Message: making a better find... Index: AssistCreateMethodInClass.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor/correctionassist/heuristics/AssistCreateMethodInClass.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** AssistCreateMethodInClass.java 13 Apr 2005 13:02:22 -0000 1.1 --- AssistCreateMethodInClass.java 13 Apr 2005 15:45:50 -0000 1.2 *************** *** 7,14 **** import java.io.File; - import java.util.Iterator; import java.util.List; - import org.eclipse.jface.text.BadLocationException; import org.python.pydev.editor.actions.PySelection; import org.python.pydev.editor.codecompletion.CompletionProposal; --- 7,12 ---- *************** *** 16,22 **** import org.python.pydev.editor.codecompletion.revisited.modules.AbstractModule; import org.python.pydev.editor.codecompletion.revisited.modules.SourceModule; ! import org.python.pydev.editor.codecompletion.revisited.visitors.AssignDefinition; ! import org.python.pydev.editor.codecompletion.revisited.visitors.FindDefinitionModelVisitor; ! import org.python.pydev.editor.model.AbstractNode; import org.python.pydev.plugin.PydevPlugin; import org.python.pydev.plugin.PythonNature; --- 14,18 ---- import org.python.pydev.editor.codecompletion.revisited.modules.AbstractModule; import org.python.pydev.editor.codecompletion.revisited.modules.SourceModule; ! import org.python.pydev.editor.codecompletion.revisited.visitors.Definition; import org.python.pydev.plugin.PydevPlugin; import org.python.pydev.plugin.PythonNature; *************** *** 46,50 **** int col = offset - ps.getStartLine().getOffset(); ! AssignDefinition[] defs = module.findDefinition(actTok, line, col, nature.getAstManager()); if(defs.length > 0){ actTok = defs[0].value; --- 42,46 ---- int col = offset - ps.getStartLine().getOffset(); ! Definition[] defs = module.findDefinition(actTok, line, col, nature.getAstManager()); if(defs.length > 0){ actTok = defs[0].value; |