From 7963322d6d3eefc9ea5038d1d0b482d3e2b3d928 Mon Sep 17 00:00:00 2001 From: toshihiro Date: Fri, 17 Aug 2007 09:17:43 +0000 Subject: [PATCH] Fixed: 1776098 - Cannot open source file from Breakpoints View --- .../debug/ui/PHPDebugModelPresentation.java | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/net.sourceforge.phpeclipse.debug.ui/src/net/sourceforge/phpdt/internal/debug/ui/PHPDebugModelPresentation.java b/net.sourceforge.phpeclipse.debug.ui/src/net/sourceforge/phpdt/internal/debug/ui/PHPDebugModelPresentation.java index 866fab9..6bed7bf 100644 --- a/net.sourceforge.phpeclipse.debug.ui/src/net/sourceforge/phpdt/internal/debug/ui/PHPDebugModelPresentation.java +++ b/net.sourceforge.phpeclipse.debug.ui/src/net/sourceforge/phpdt/internal/debug/ui/PHPDebugModelPresentation.java @@ -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; } -- 1.7.1