[Pydev-cvs] org.python.pydev/src/org/python/pydev/editor/actions PyOpenAction.java, 1.19, 1.20
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2008-08-06 16:23:11
|
Update of /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor/actions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26629/src/org/python/pydev/editor/actions Modified Files: PyOpenAction.java Log Message: - Refactoring the source locator - Linxing working with compare editor both ways Index: PyOpenAction.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor/actions/PyOpenAction.java,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** PyOpenAction.java 16 Sep 2007 17:15:53 -0000 1.19 --- PyOpenAction.java 6 Aug 2008 16:23:19 -0000 1.20 *************** *** 22,25 **** --- 22,26 ---- import org.python.pydev.editor.model.ItemPointer; import org.python.pydev.editor.model.Location; + import org.python.pydev.editorinput.PyOpenEditor; import org.python.pydev.plugin.PydevPlugin; *************** *** 61,78 **** if(zipFilePath != null){ //currently, only open zip file ! editor = PydevPlugin.doOpenEditor((File)file, zipFilePath, true); } else if (file instanceof IFile) { IFile f = (IFile) file; ! editor = PydevPlugin.doOpenEditor(f, true); } else if (file instanceof IPath) { IPath path = (IPath) file; ! editor = PydevPlugin.doOpenEditor(path, true); } else if (file instanceof File) { String absPath = REF.getFileAbsolutePath((File) file); IPath path = Path.fromOSString(absPath); ! editor = PydevPlugin.doOpenEditor(path, true); } --- 62,79 ---- if(zipFilePath != null){ //currently, only open zip file ! editor = PyOpenEditor.doOpenEditor((File)file, zipFilePath); } else if (file instanceof IFile) { IFile f = (IFile) file; ! editor = PyOpenEditor.doOpenEditor(f); } else if (file instanceof IPath) { IPath path = (IPath) file; ! editor = PyOpenEditor.doOpenEditor(path); } else if (file instanceof File) { String absPath = REF.getFileAbsolutePath((File) file); IPath path = Path.fromOSString(absPath); ! editor = PyOpenEditor.doOpenEditor(path); } |