1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +02:00

Replaced the "breakpointRemoved" method of ICBreakpointListener by the "breakpointsRemoved" method that accepts multiple breakpoints.

This commit is contained in:
Mikhail Khodjaiants 2004-11-25 18:24:04 +00:00
parent 4a5818a220
commit ef622f4964
2 changed files with 15 additions and 10 deletions

View file

@ -1,3 +1,8 @@
2004-11-25 Mikhail Khodjaiants
Replaced the "breakpointRemoved" method of ICBreakpointListener by the "breakpointsRemoved"
method that accepts multiple breakpoints.
* CBreakpointUpdater.java
2004-11-23 Mikhail Khodjaiants
Workaround for bug 69728: IndexOutOfBoundsException in TextPresentation.
This bug is fixed in Eclipse 3.1.

View file

@ -99,20 +99,20 @@ public class CBreakpointUpdater implements ICBreakpointListener {
* (non-Javadoc)
*
* @see org.eclipse.cdt.debug.core.ICBreakpointListener#breakpointRemoved(org.eclipse.debug.core.model.IDebugTarget,
* org.eclipse.debug.core.model.IBreakpoint)
* org.eclipse.debug.core.model.IBreakpoint[])
*/
public void breakpointRemoved( IDebugTarget target, final IBreakpoint breakpoint ) {
public void breakpointsRemoved( IDebugTarget target, final IBreakpoint[] breakpoints ) {
asyncExec( new Runnable() {
public void run() {
try {
int installCount = ((ICBreakpoint)breakpoint).decrementInstallCount();
if ( installCount == 0 )
breakpoint.delete();
}
catch( CoreException e ) {
// ensureMarker throws this exception
// if breakpoint has already been deleted
for ( int i = 0; i < breakpoints.length; ++i ) {
try {
((ICBreakpoint)breakpoints[i]).decrementInstallCount();
}
catch( CoreException e ) {
// ensureMarker throws this exception
// if breakpoint has already been deleted
}
}
}
} );