From c768d51a583834f5b1143135eff368b7fe35685d Mon Sep 17 00:00:00 2001
From: robekras <robekras>
Date: Sun, 11 Dec 2005 14:42:16 +0000
Subject: [PATCH 1/1] 1) Added handling of conditional breakpoint to addBreakoint method.

---
 .../phpdt/internal/debug/core/PHPDBGProxy.java     |   15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/net.sourceforge.phpeclipse.debug.core/src/net/sourceforge/phpdt/internal/debug/core/PHPDBGProxy.java b/net.sourceforge.phpeclipse.debug.core/src/net/sourceforge/phpdt/internal/debug/core/PHPDBGProxy.java
index e93a7f1..5c7e639 100644
--- a/net.sourceforge.phpeclipse.debug.core/src/net/sourceforge/phpdt/internal/debug/core/PHPDBGProxy.java
+++ b/net.sourceforge.phpeclipse.debug.core/src/net/sourceforge/phpdt/internal/debug/core/PHPDBGProxy.java
@@ -293,8 +293,19 @@ public class PHPDBGProxy {
   	      		phpLBP = (PHPLineBreakpoint) breakpoint;
 
   	      		// 	bpNo= DBGInt.addBreakpoint(phpLBP.getMarker().getResource().getLocation().toOSString(), phpLBP.getLineNumber());
-
-  	      		bpNo = DBGInt.addBreakpoint(MapPath(phpLBP), phpLBP.getLineNumber());
+  	      		if (phpLBP.isConditionEnabled ()) {
+  	      			bpNo = DBGInt.addBreakpoint (MapPath(phpLBP),
+  	      										 phpLBP.getLineNumber(), 
+  	      				                         phpLBP.getHitCount(),
+  	      				                         phpLBP.getCondition ());
+  	      		}
+  	      		else {
+  	      			bpNo = DBGInt.addBreakpoint (MapPath(phpLBP),
+  	      										 phpLBP.getLineNumber(), 
+  	      				                         phpLBP.getHitCount(),
+  	      				                         "");
+  	      		}
+  	      		
   	      		phpLBP.setDBGBpNo(bpNo);
   	    	}
   	  	} catch (IOException e) {
-- 
1.7.1