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:
parent
4a5818a220
commit
ef622f4964
2 changed files with 15 additions and 10 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
} );
|
||||
|
|
Loading…
Add table
Reference in a new issue