Fixed: 1776098 - Cannot open source file from Breakpoints View
[phpeclipse.git] / net.sourceforge.phpeclipse.debug.ui / src / net / sourceforge / phpdt / internal / debug / ui / PHPDebugModelPresentation.java
index 866fab9..6bed7bf 100644 (file)
@@ -82,8 +82,10 @@ public class PHPDebugModelPresentation extends LabelProvider implements
                if (item instanceof PHPLineBreakpoint) {
                        IBreakpoint bp = (IBreakpoint) item;
                        IMarker ma = bp.getMarker();
+                       //IFile eclipseFile = PHPDebugUiPlugin.getWorkspace().getRoot()
+                       //              .getFileForLocation(ma.getResource().getLocation());
                        IFile eclipseFile = PHPDebugUiPlugin.getWorkspace().getRoot()
-                                       .getFileForLocation(ma.getResource().getLocation());
+                                       .getFile(ma.getResource().getFullPath());
                        if (eclipseFile == null) {
                                return null;
                        }