[Pydev-cvs] org.python.pydev/src/org/python/pydev/editor PyEdit.java,1.21,1.22
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2004-09-14 17:42:29
|
Update of /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9579/src/org/python/pydev/editor Modified Files: PyEdit.java Log Message: Code completion improvements. Starting refactoring integration with bicycle repair man. Index: PyEdit.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor/PyEdit.java,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** PyEdit.java 13 Sep 2004 17:11:53 -0000 1.21 --- PyEdit.java 14 Sep 2004 17:42:17 -0000 1.22 *************** *** 6,9 **** --- 6,10 ---- package org.python.pydev.editor; + import java.io.File; import java.util.ArrayList; import java.util.Iterator; *************** *** 31,34 **** --- 32,36 ---- import org.eclipse.ui.PartInitException; import org.eclipse.ui.editors.text.ILocationProvider; + import org.eclipse.ui.part.FileEditorInput; import org.eclipse.ui.texteditor.DefaultRangeIndicator; import org.eclipse.ui.texteditor.IEditorStatusLine; *************** *** 189,194 **** } ! ! // cleanup public void dispose() { PydevPrefs.getPreferences().removePropertyChangeListener(prefListener); --- 191,213 ---- } ! ! ! /** ! * @return ! * ! */ ! public File getEditorFile() { ! File f = null; ! IEditorInput editorInput = this.getEditorInput(); ! if (editorInput instanceof FileEditorInput){ ! IFile file = (IFile) ((FileEditorInput)editorInput).getAdapter(IFile.class); ! ! IPath path = file.getLocation().makeAbsolute(); ! f = path.toFile(); ! } ! return f; ! } ! ! // cleanup public void dispose() { PydevPrefs.getPreferences().removePropertyChangeListener(prefListener); |