Fixed: 1776098 - Cannot open source file from Breakpoints View
authortoshihiro <toshihiro>
Fri, 17 Aug 2007 09:17:43 +0000 (09:17 +0000)
committertoshihiro <toshihiro>
Fri, 17 Aug 2007 09:17:43 +0000 (09:17 +0000)
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;
                        }