import net.sourceforge.phpdt.internal.debug.core.PHPDebugCorePlugin;
import net.sourceforge.phpdt.internal.debug.core.breakpoints.PHPLineBreakpoint;
+//import net.sourceforge.phpdt.internal.debug.core.breakpoints.IPHPLineBreakpoint;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.Preferences;
}
new PHPLineBreakpoint(resource, lineNumber, charStart, charEnd, hitCount, true, attributes);
}
+
+ public static void createLineBreakpoint(IResource resource, int lineNumber, int hitCount, boolean register, Map attributes) throws CoreException {
+ if (attributes == null) {
+ attributes = new HashMap(10);
+ }
+ new PHPLineBreakpoint(resource, lineNumber, hitCount, true, attributes);
+ }
+
/**
* Returns true if line breakpoint is already registered with the breakpoint
* if no such breakpoint is registered
* @exception CoreException If this method fails.
*/
- public static boolean lineBreakpointExists(int lineNumber) throws CoreException {
+ public static PHPLineBreakpoint lineBreakpointExists(int lineNumber) throws CoreException {
String modelId= getPluginIdentifier();
String markerType= PHPLineBreakpoint.getMarkerType();
IBreakpointManager manager= DebugPlugin.getDefault().getBreakpointManager();
PHPLineBreakpoint breakpoint = (PHPLineBreakpoint) breakpoints[i];
if (breakpoint.getMarker().getType().equals(markerType)) {
if (breakpoint.getLineNumber() == lineNumber) {
- return true;
+ return breakpoint;
}
}
}
- return false;
+ return null;
}
/**