Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-debug-dev] IBreakpoint listener API

Upon further examination, I realize that I shouldn't be worried about 
manually notifying listeners of breakpointChange events. The 
BreakpointManager should take care of this for me - it maintains the list of 
listeners and is the one responsible for firing notifications when the marker 
changes.

I think we should add API to the BreakpointManager (BPM) to allow 
third-parties to notify the BPM of breakpoint changes. I suggest adding 
breakpointChanged(IBreakpoint) to the API. This method would notify all 
IBreakpointListeners via the breakpointChanged(IBreakpoint, IMarkerDelta) API 
with a null marker delta. Note that this is the way 
BPM#breakpointAdded(IBreakpoint) and BPM#breakpointRemoved(IBreakpoint) 
already behave.

The IBreakpointListener API still needs to be updated to accept null as a 
parameter.

- Jared


Back to the top