From: cperkonig Date: Sun, 29 Feb 2004 18:33:35 +0000 (+0000) Subject: changes for new Action X-Git-Url: http://git.phpeclipse.com?hp=214bdba7b8c7a4cd467c2c3823e805374d3ab1d0 changes for new Action --- diff --git a/net.sourceforge.phpeclipse.debug.ui/src/net/sourceforge/phpdt/internal/debug/ui/actions/PHPManageBreakpointRulerAction.java b/net.sourceforge.phpeclipse.debug.ui/src/net/sourceforge/phpdt/internal/debug/ui/actions/PHPManageBreakpointRulerAction.java index c284e8e..e715589 100644 --- a/net.sourceforge.phpeclipse.debug.ui/src/net/sourceforge/phpdt/internal/debug/ui/actions/PHPManageBreakpointRulerAction.java +++ b/net.sourceforge.phpeclipse.debug.ui/src/net/sourceforge/phpdt/internal/debug/ui/actions/PHPManageBreakpointRulerAction.java @@ -12,10 +12,8 @@ Contributors: package net.sourceforge.phpdt.internal.debug.ui.actions; import java.util.ArrayList; -import java.util.HashMap; import java.util.Iterator; import java.util.List; -import java.util.Map; import net.sourceforge.phpdt.debug.core.PHPDebugModel; import net.sourceforge.phpdt.internal.debug.ui.PHPDebugUiMessages; @@ -215,8 +213,8 @@ public class PHPManageBreakpointRulerAction extends Action implements IUpdate { int lineNumber= rulerLine + 1; if (lineNumber > 0) { - if (!PHPDebugModel.lineBreakpointExists(lineNumber)) { - Map attributes = new HashMap(10); + if (PHPDebugModel.lineBreakpointExists(lineNumber)==null) { +// Map attributes = new HashMap(10); IRegion line= document.getLineInformation(lineNumber - 1); int start= line.getOffset(); int lenline= line.getLength(); @@ -224,19 +222,17 @@ public class PHPManageBreakpointRulerAction extends Action implements IUpdate { int end= start + lenline; //PHPDebugModel.createLineBreakpoint(getResource(), lineNumber, start, end, 0, true, attributes); - PHPDebugModel.createLineBreakpoint(((IFileEditorInput) editorInput).getFile(), lineNumber, start, end, 0, true, attributes); + PHPDebugModel.createLineBreakpoint(((IFileEditorInput) editorInput).getFile(), lineNumber, start, end, 0, true, null); +// PHPDebugModel.createLineBreakpoint(((IFileEditorInput) editorInput).getFile(), lineNumber, 0, true, attributes); } } } catch (DebugException e) { System.out.println("Error"); -// JDIDebugUIPlugin.errorDialog(ActionMessages.getString("ManageBreakpointRulerAction.error.adding.message1"), e); //$NON-NLS-1$ } catch (CoreException e) { System.out.println("Error"); -// JDIDebugUIPlugin.errorDialog(ActionMessages.getString("ManageBreakpointRulerAction.error.adding.message1"), e); //$NON-NLS-1$ } catch (BadLocationException e) { System.out.println("Error"); -// JDIDebugUIPlugin.errorDialog(ActionMessages.getString("ManageBreakpointRulerAction.error.adding.message1"), e); //$NON-NLS-1$ } }