Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikhail Khodjaiants2003-11-07 22:55:30 +0000
committerMikhail Khodjaiants2003-11-07 22:55:30 +0000
commit1c2bf651f95d50f09a647d38b18118f5806cfe95 (patch)
tree4e833bfbcd0b2f0ebbdced27a182dc12db690be9
parent90285517def27cbe185545560264b382f3e0d521 (diff)
downloadorg.eclipse.cdt-1c2bf651f95d50f09a647d38b18118f5806cfe95.tar.gz
org.eclipse.cdt-1c2bf651f95d50f09a647d38b18118f5806cfe95.tar.xz
org.eclipse.cdt-1c2bf651f95d50f09a647d38b18118f5806cfe95.zip
Use the corresponding methods of 'ICBreakpoint' to set breakpoint properties.
-rw-r--r--debug/org.eclipse.cdt.debug.core/ChangeLog4
-rw-r--r--debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/CBreakpointManager.java9
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 9360bc9af2..c8fa26bc20 100644
--- a/debug/org.eclipse.cdt.debug.core/ChangeLog
+++ b/debug/org.eclipse.cdt.debug.core/ChangeLog
@@ -1,4 +1,8 @@
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.
* SourceUtils.java
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 da04f66fa1..3885dc9fff 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 )
{

Back to the top