changes for new Action
authorcperkonig <cperkonig>
Sun, 29 Feb 2004 18:33:35 +0000 (18:33 +0000)
committercperkonig <cperkonig>
Sun, 29 Feb 2004 18:33:35 +0000 (18:33 +0000)
net.sourceforge.phpeclipse.debug.ui/src/net/sourceforge/phpdt/internal/debug/ui/actions/PHPManageBreakpointRulerAction.java

index c284e8e..e715589 100644 (file)
@@ -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$
                }
        }