[Pydev-cvs] org.python.pydev/src/org/python/pydev/editor/autoedit PyAutoIndentStrategy.java, 1.70,
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2008-07-09 19:10:53
|
Update of /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor/autoedit In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8149/src/org/python/pydev/editor/autoedit Modified Files: PyAutoIndentStrategy.java Log Message: Minor refactoring Index: PyAutoIndentStrategy.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor/autoedit/PyAutoIndentStrategy.java,v retrieving revision 1.70 retrieving revision 1.71 diff -C2 -d -r1.70 -r1.71 *** PyAutoIndentStrategy.java 3 Jul 2008 01:04:04 -0000 1.70 --- PyAutoIndentStrategy.java 9 Jul 2008 19:11:00 -0000 1.71 *************** *** 495,502 **** boolean hasClassMethodDef = line.indexOf(" def ") != -1 || line.indexOf("\tdef ") != -1; boolean hasMethodDef = line.indexOf("def ") != -1; ! boolean hasNoDoublePoint = line.indexOf(":") == -1; command.shiftsCaret = false; ! if (hasNoDoublePoint && (hasClass || hasClassMethodDef || hasMethodDef)) { if (hasClass) { //command.text = "(object):"; //TODO: put some option in the interface for that --- 495,502 ---- boolean hasClassMethodDef = line.indexOf(" def ") != -1 || line.indexOf("\tdef ") != -1; boolean hasMethodDef = line.indexOf("def ") != -1; ! boolean hasDoublePoint = line.indexOf(":") != -1; command.shiftsCaret = false; ! if (!hasDoublePoint && (hasClass || hasClassMethodDef || hasMethodDef)) { if (hasClass) { //command.text = "(object):"; //TODO: put some option in the interface for that |