mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-10 17:55:39 +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
|
2004-11-23 Mikhail Khodjaiants
|
||||||
Workaround for bug 69728: IndexOutOfBoundsException in TextPresentation.
|
Workaround for bug 69728: IndexOutOfBoundsException in TextPresentation.
|
||||||
This bug is fixed in Eclipse 3.1.
|
This bug is fixed in Eclipse 3.1.
|
||||||
|
|
|
@ -99,20 +99,20 @@ public class CBreakpointUpdater implements ICBreakpointListener {
|
||||||
* (non-Javadoc)
|
* (non-Javadoc)
|
||||||
*
|
*
|
||||||
* @see org.eclipse.cdt.debug.core.ICBreakpointListener#breakpointRemoved(org.eclipse.debug.core.model.IDebugTarget,
|
* @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() {
|
asyncExec( new Runnable() {
|
||||||
|
|
||||||
public void run() {
|
public void run() {
|
||||||
try {
|
for ( int i = 0; i < breakpoints.length; ++i ) {
|
||||||
int installCount = ((ICBreakpoint)breakpoint).decrementInstallCount();
|
try {
|
||||||
if ( installCount == 0 )
|
((ICBreakpoint)breakpoints[i]).decrementInstallCount();
|
||||||
breakpoint.delete();
|
}
|
||||||
}
|
catch( CoreException e ) {
|
||||||
catch( CoreException e ) {
|
// ensureMarker throws this exception
|
||||||
// ensureMarker throws this exception
|
// if breakpoint has already been deleted
|
||||||
// if breakpoint has already been deleted
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
|
Loading…
Add table
Reference in a new issue