aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacek Pospychala2013-01-09 06:58:39 (EST)
committerJacek Pospychala2013-01-09 06:59:15 (EST)
commit3b8f060d132f6e79a4972787991e453da2b1f53a (patch)
tree6eeb45904202d008b20230c20eba55c03ba52559
parent0704a734ba9056f088378a76ff8b06cd4a9d4c5a (diff)
downloadorg.eclipse.pdt-3b8f060d132f6e79a4972787991e453da2b1f53a.zip
org.eclipse.pdt-3b8f060d132f6e79a4972787991e453da2b1f53a.tar.gz
org.eclipse.pdt-3b8f060d132f6e79a4972787991e453da2b1f53a.tar.bz2
Bug 397749 - Consider PHP breakpoint in any files when generating Add
Files message
-rw-r--r--plugins/org.eclipse.php.debug.core/src/org/eclipse/php/internal/debug/core/zend/model/PHPDebugTarget.java24
1 files changed, 11 insertions, 13 deletions
diff --git a/plugins/org.eclipse.php.debug.core/src/org/eclipse/php/internal/debug/core/zend/model/PHPDebugTarget.java b/plugins/org.eclipse.php.debug.core/src/org/eclipse/php/internal/debug/core/zend/model/PHPDebugTarget.java
index d63ac3c..fcad264 100644
--- a/plugins/org.eclipse.php.debug.core/src/org/eclipse/php/internal/debug/core/zend/model/PHPDebugTarget.java
+++ b/plugins/org.eclipse.php.debug.core/src/org/eclipse/php/internal/debug/core/zend/model/PHPDebugTarget.java
@@ -1235,22 +1235,20 @@ public class PHPDebugTarget extends PHPDebugElement implements IPHPDebugTarget,
if (res instanceof IContainer) {
getBreakpointFiles((IContainer) res, paths, breakpoints);
} else {
- if (res.getName().endsWith(".php")) {
- List<IBreakpoint> toRemove = new ArrayList<IBreakpoint>();
- for (IBreakpoint bp : breakpoints) {
- if (bp.getMarker().getResource().equals(res)) {
- String remotePath = RemoteDebugger
- .convertToRemoteFilename(res.getFullPath()
- .toString(), this);
- if (remotePath != null && remotePath.length() > 0) {
- paths.add(remotePath);
- toRemove.add(bp);
- }
- break;
+ List<IBreakpoint> toRemove = new ArrayList<IBreakpoint>();
+ for (IBreakpoint bp : breakpoints) {
+ if (bp.getMarker().getResource().equals(res)) {
+ String remotePath = RemoteDebugger
+ .convertToRemoteFilename(res.getFullPath()
+ .toString(), this);
+ if (remotePath != null && remotePath.length() > 0) {
+ paths.add(remotePath);
+ toRemove.add(bp);
}
+ break;
}
- breakpoints.removeAll(toRemove);
}
+ breakpoints.removeAll(toRemove);
}
}
}