1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-19 15:05:36 +02:00

Bug 327025 - [breakpoints][vm] Breakpoint groups get collapsed on frequent breakpoint changes.

This commit is contained in:
Pawel Piech 2010-10-05 17:10:48 +00:00
parent 0c17a85354
commit 91b7a9eecb

View file

@ -65,12 +65,8 @@ public class BreakpointOrganizerVMNode extends AbstractVMNode {
this, update.getElementPath(), this, update.getElementPath(),
new ViewerDataRequestMonitor<List<BreakpointOrganizerVMContext>>(getExecutor(), update) { new ViewerDataRequestMonitor<List<BreakpointOrganizerVMContext>>(getExecutor(), update) {
@Override @Override
protected void handleCompleted() { protected void handleSuccess() {
if (isSuccess()) {
update.setHasChilren(!getData().isEmpty()); update.setHasChilren(!getData().isEmpty());
} else {
update.setHasChilren(false);
}
update.done(); update.done();
} }
}); });
@ -84,12 +80,8 @@ public class BreakpointOrganizerVMNode extends AbstractVMNode {
this, update.getElementPath(), this, update.getElementPath(),
new ViewerDataRequestMonitor<List<BreakpointOrganizerVMContext>>(getExecutor(), update) { new ViewerDataRequestMonitor<List<BreakpointOrganizerVMContext>>(getExecutor(), update) {
@Override @Override
protected void handleCompleted() { protected void handleSuccess() {
if (isSuccess()) {
update.setChildCount(getData().size()); update.setChildCount(getData().size());
} else {
update.setChildCount(0);
}
update.done(); update.done();
} }
}); });