From 1c2bf651f95d50f09a647d38b18118f5806cfe95 Mon Sep 17 00:00:00 2001 From: Mikhail Khodjaiants Date: Fri, 7 Nov 2003 22:55:30 +0000 Subject: [PATCH] Use the corresponding methods of 'ICBreakpoint' to set breakpoint properties. --- debug/org.eclipse.cdt.debug.core/ChangeLog | 4 ++++ .../cdt/debug/internal/core/CBreakpointManager.java | 9 +++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/debug/org.eclipse.cdt.debug.core/ChangeLog b/debug/org.eclipse.cdt.debug.core/ChangeLog index 9360bc9af2c..c8fa26bc204 100644 --- a/debug/org.eclipse.cdt.debug.core/ChangeLog +++ b/debug/org.eclipse.cdt.debug.core/ChangeLog @@ -1,3 +1,7 @@ +2003-11-07 Mikhail Khodjaiants + Use the corresponding methods of 'ICBreakpoint' to set breakpoint properties. + * CBreakpointManager.java + 2003-11-07 Mikhail Khodjaiants Fix for PR 46303: Exception when selecting Debug... menu. Check if the string passed to the 'getCommonSourceLocationsFromMemento' method is not empty. diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/CBreakpointManager.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/CBreakpointManager.java index da04f66fa11..3885dc9fff6 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/CBreakpointManager.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/CBreakpointManager.java @@ -7,7 +7,6 @@ package org.eclipse.cdt.debug.internal.core; import java.util.HashMap; -import java.util.Map; import java.util.Set; import org.eclipse.cdt.debug.core.CDebugCorePlugin; @@ -519,11 +518,9 @@ public class CBreakpointManager implements ICBreakpointManager, ICDIEventListene { try { - Map attributes = breakpoint.getMarker().getAttributes(); - attributes.put( ICBreakpoint.ENABLED, new Boolean( cdiBreakpoint.isEnabled() ) ); - attributes.put( ICBreakpoint.IGNORE_COUNT, new Integer( cdiBreakpoint.getCondition().getIgnoreCount() ) ); - attributes.put( ICBreakpoint.CONDITION, cdiBreakpoint.getCondition().getExpression() ); - breakpoint.getMarker().setAttributes( attributes ); + breakpoint.setEnabled( cdiBreakpoint.isEnabled() ); + breakpoint.setIgnoreCount( cdiBreakpoint.getCondition().getIgnoreCount() ); + breakpoint.setCondition( cdiBreakpoint.getCondition().getExpression() ); } catch( CDIException e ) {