[Pydev-cvs] org.python.pydev/src/org/python/pydev/editor/autoedit PyAutoIndentStrategy.java, 1.55,
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2007-02-23 00:00:28
|
Update of /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor/autoedit In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12876/src/org/python/pydev/editor/autoedit Modified Files: PyAutoIndentStrategy.java Log Message: Refactoring to add custom code-completion in strings. Index: PyAutoIndentStrategy.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor/autoedit/PyAutoIndentStrategy.java,v retrieving revision 1.55 retrieving revision 1.56 diff -C2 -d -r1.55 -r1.56 *** PyAutoIndentStrategy.java 17 Sep 2006 23:25:49 -0000 1.55 --- PyAutoIndentStrategy.java 23 Feb 2007 00:00:24 -0000 1.56 *************** *** 19,23 **** import org.python.pydev.core.docutils.PySelection; import org.python.pydev.editor.actions.PyAction; ! import org.python.pydev.editor.codecompletion.PyCodeCompletion; /** --- 19,23 ---- import org.python.pydev.core.docutils.PySelection; import org.python.pydev.editor.actions.PyAction; ! import org.python.pydev.editor.codecompletion.PyCodeCompletionUtils; /** *************** *** 447,451 **** String lineToCursor = ps.getLineContentsToCursor().trim(); if(completeLine.indexOf("import") == -1){ ! String importsTipperStr = PyCodeCompletion.getImportsTipperStr(lineToCursor, false).importsTipperStr; if(importsTipperStr.length() > 0){ command.text = " import "; --- 447,451 ---- String lineToCursor = ps.getLineContentsToCursor().trim(); if(completeLine.indexOf("import") == -1){ ! String importsTipperStr = PyCodeCompletionUtils.getImportsTipperStr(lineToCursor, false).importsTipperStr; if(importsTipperStr.length() > 0){ command.text = " import "; |