[Pydev-cvs] org.python.pydev/src/org/python/pydev/editorinput PydevFileEditorInput.java, 1.1, 1.2
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2008-05-03 16:19:54
|
Update of /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editorinput In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9974/src/org/python/pydev/editorinput Modified Files: PydevFileEditorInput.java Log Message: Outline: Assign with multiple targets is recognized Index: PydevFileEditorInput.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editorinput/PydevFileEditorInput.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** PydevFileEditorInput.java 16 Sep 2007 17:15:53 -0000 1.1 --- PydevFileEditorInput.java 3 May 2008 16:19:59 -0000 1.2 *************** *** 10,17 **** --- 10,19 ---- import org.eclipse.core.runtime.Platform; import org.eclipse.jface.resource.ImageDescriptor; + import org.eclipse.ui.IFileEditorInput; import org.eclipse.ui.IPathEditorInput; import org.eclipse.ui.IPersistableElement; import org.eclipse.ui.editors.text.ILocationProvider; import org.eclipse.ui.model.IWorkbenchAdapter; + import org.python.pydev.plugin.PydevPlugin; /** *************** *** 133,138 **** */ public boolean equals(Object o) { ! if (o == this) return true; if (o instanceof PydevFileEditorInput) { --- 135,141 ---- */ public boolean equals(Object o) { ! if (o == this){ return true; + } if (o instanceof PydevFileEditorInput) { *************** *** 141,144 **** --- 144,153 ---- } + if (o instanceof IFileEditorInput) { + IFileEditorInput input = (IFileEditorInput) o; + File otherFile = new File(PydevPlugin.getIResourceOSString(input.getFile())); + return fFile.equals(otherFile); + } + if (o instanceof IPathEditorInput) { IPathEditorInput input= (IPathEditorInput)o; |