[Pydev-cvs] org.python.pydev/src/org/python/pydev/editor/actions PyOpenAction.java,1.3,1.4
Brought to you by:
fabioz
From: Aleksandar T. <at...@us...> - 2004-05-05 02:05:47
|
Update of /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor/actions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17997/src/org/python/pydev/editor/actions Modified Files: PyOpenAction.java Log Message: Minor tweaks: - removed some debug printfs - hyperlinks show up only when there is something to jump to - OydevPlugin got an error dialog Index: PyOpenAction.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor/actions/PyOpenAction.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** PyOpenAction.java 27 Apr 2004 01:06:59 -0000 1.3 --- PyOpenAction.java 5 May 2004 02:05:08 -0000 1.4 *************** *** 55,65 **** IEditorPart editor = null; if (p.file instanceof IFile) ! editor = PydevPlugin.getDefault().doOpenEditor(((IFile)p.file).getFullPath()); else if (p.file instanceof IPath) { ! editor = PydevPlugin.getDefault().doOpenEditor((IPath)p.file); } else if (p.file instanceof File) { Path path = new Path(((File)p.file).getAbsolutePath()); ! editor = PydevPlugin.getDefault().doOpenEditor(path); } if (editor instanceof ITextEditor) { --- 55,65 ---- IEditorPart editor = null; if (p.file instanceof IFile) ! editor = PydevPlugin.getDefault().doOpenEditor(((IFile)p.file).getFullPath(), true); else if (p.file instanceof IPath) { ! editor = PydevPlugin.getDefault().doOpenEditor((IPath)p.file, true); } else if (p.file instanceof File) { Path path = new Path(((File)p.file).getAbsolutePath()); ! editor = PydevPlugin.getDefault().doOpenEditor(path, true); } if (editor instanceof ITextEditor) { |