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;
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();
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$
}
}