[Pydev-cvs] org.python.pydev/src/org/python/pydev/editor/actions PyAction.java,1.8,1.9 PySelection.j
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2004-09-23 18:00:12
|
Update of /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor/actions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5252/src/org/python/pydev/editor/actions Modified Files: PyAction.java PySelection.java Log Message: Making correction assistant on Ctrl+1 Index: PySelection.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor/actions/PySelection.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** PySelection.java 15 Sep 2004 17:36:09 -0000 1.4 --- PySelection.java 23 Sep 2004 17:59:59 -0000 1.5 *************** *** 187,191 **** // Grab the selected text into our string ! selection = doc.get ( initialPos, selLength ); } // Otherwise we'll modify the whole document, if asked to --- 187,191 ---- // Grab the selected text into our string ! selection = doc.get ( getITextSelection().getOffset(), getITextSelection().getLength() ); } // Otherwise we'll modify the whole document, if asked to Index: PyAction.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor/actions/PyAction.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** PyAction.java 4 Aug 2004 13:18:43 -0000 1.8 --- PyAction.java 23 Sep 2004 17:59:59 -0000 1.9 *************** *** 136,140 **** * @throws BadLocationException */ ! protected int getFirstCharPosition(IDocument doc, int cursorOffset) throws BadLocationException { IRegion region; --- 136,140 ---- * @throws BadLocationException */ ! public static int getFirstCharPosition(IDocument doc, int cursorOffset) throws BadLocationException { IRegion region; |