[Esbox-commits] r876 - trunk/python/org.maemo.esbox.python.launch/src/org/maemo/esbox/python/launch/debug

eswartz at garage.maemo.org eswartz at garage.maemo.org
Wed Oct 15 22:25:45 EEST 2008


Author: eswartz
Date: 2008-10-15 22:25:44 +0300 (Wed, 15 Oct 2008)
New Revision: 876

Modified:
   trunk/python/org.maemo.esbox.python.launch/src/org/maemo/esbox/python/launch/debug/ESboxPythonSourceLocator.java
Log:
Synchronize with latest Pydev, which again moves this function, and just make an editor directly.

Modified: trunk/python/org.maemo.esbox.python.launch/src/org/maemo/esbox/python/launch/debug/ESboxPythonSourceLocator.java
===================================================================
--- trunk/python/org.maemo.esbox.python.launch/src/org/maemo/esbox/python/launch/debug/ESboxPythonSourceLocator.java	2008-10-15 19:24:39 UTC (rev 875)
+++ trunk/python/org.maemo.esbox.python.launch/src/org/maemo/esbox/python/launch/debug/ESboxPythonSourceLocator.java	2008-10-15 19:25:44 UTC (rev 876)
@@ -11,11 +11,13 @@
 
 package org.maemo.esbox.python.launch.debug;
 
+import org.eclipse.core.resources.IFile;
 import org.eclipse.core.resources.IResource;
 import org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector;
 import org.eclipse.debug.core.sourcelookup.ISourceLookupParticipant;
 import org.eclipse.debug.ui.ISourcePresentation;
 import org.eclipse.ui.IEditorInput;
+import org.eclipse.ui.part.FileEditorInput;
 import org.python.pydev.debug.model.PySourceLocator;
 import org.python.pydev.editorinput.PySourceLocatorBase;
 
@@ -44,8 +46,8 @@
 
 
 	public IEditorInput getEditorInput(Object element) {
-		if (element instanceof IResource) {
-			return PySourceLocatorBase.createEditorInput(((IResource) element).getLocation());        
+		if (element instanceof IFile) {
+			return new FileEditorInput((IFile) element);        
 		}
 		return pythonSourceLocator.getEditorInput(element);
 	}



More information about the Esbox-commits mailing list