[Pydev-cvs] org.python.pydev/src/org/python/pydev/editor PyEdit.java,1.90,1.91
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2006-03-29 22:26:32
|
Update of /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16968/src/org/python/pydev/editor Modified Files: PyEdit.java Log Message: Fixed bug (it was unable to get the nature when it was an editor for an external file, so, go to declaration wouldn't work). Index: PyEdit.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor/PyEdit.java,v retrieving revision 1.90 retrieving revision 1.91 diff -C2 -d -r1.90 -r1.91 *** PyEdit.java 29 Mar 2006 14:33:45 -0000 1.90 --- PyEdit.java 29 Mar 2006 22:26:26 -0000 1.91 *************** *** 925,934 **** /** ! * @return ! * */ public IPythonNature getPythonNature() { IProject project = getProject(); ! return PythonNature.getPythonNature(project); } --- 925,937 ---- /** ! * @return the python nature associated with this editor. */ public IPythonNature getPythonNature() { IProject project = getProject(); ! IPythonNature pythonNature = PythonNature.getPythonNature(project); ! if(pythonNature == null){ ! pythonNature = PydevPlugin.getInfoForFile(getEditorFile()).o1; ! } ! return pythonNature; } |