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

Bug 291628 - [debug view][vm] Redundant updates on FullStackRefreshEvent

This commit is contained in:
Pawel Piech 2009-10-07 16:29:32 +00:00
parent 628ded59a1
commit 79d6493210
3 changed files with 2 additions and 20 deletions

View file

@ -271,11 +271,7 @@ public abstract class AbstractContainerVMNode extends AbstractDMVMNode
} }
} else if (e instanceof IContainerSuspendedDMEvent) { } else if (e instanceof IContainerSuspendedDMEvent) {
return IModelDelta.NO_CHANGE; return IModelDelta.NO_CHANGE;
} else if (e instanceof FullStackRefreshEvent) { } else if (e instanceof SteppingTimedOutEvent) {
if (dmc instanceof IContainerDMContext) {
return IModelDelta.CONTENT;
}
} else if (e instanceof SteppingTimedOutEvent) {
if (dmc instanceof IContainerDMContext) if (dmc instanceof IContainerDMContext)
{ {
return IModelDelta.CONTENT; return IModelDelta.CONTENT;
@ -312,13 +308,6 @@ public abstract class AbstractContainerVMNode extends AbstractDMVMNode
// Container suspended. Do nothing here to give the stack the // Container suspended. Do nothing here to give the stack the
// priority in updating. The container and threads will update as // priority in updating. The container and threads will update as
// a result of FullStackRefreshEvent. // a result of FullStackRefreshEvent.
} else if (e instanceof FullStackRefreshEvent) {
// Full-stack refresh event is generated following a suspended event
// and a fixed delay. If the suspended event was generated for the
// container refresh the whole container.
if (dmc instanceof IContainerDMContext) {
parentDelta.addNode(createVMContext(dmc), IModelDelta.CONTENT);
}
} else if (e instanceof SteppingTimedOutEvent) { } else if (e instanceof SteppingTimedOutEvent) {
// Stepping time-out indicates that a step operation is taking // Stepping time-out indicates that a step operation is taking
// a long time, and the view needs to be refreshed to show // a long time, and the view needs to be refreshed to show

View file

@ -336,8 +336,6 @@ public abstract class AbstractThreadVMNode extends AbstractDMVMNode
return IModelDelta.CONTENT; return IModelDelta.CONTENT;
} else if (e instanceof ISuspendedDMEvent) { } else if (e instanceof ISuspendedDMEvent) {
return IModelDelta.NO_CHANGE; return IModelDelta.NO_CHANGE;
} else if (e instanceof FullStackRefreshEvent) {
return IModelDelta.CONTENT;
} else if (e instanceof SteppingTimedOutEvent) { } else if (e instanceof SteppingTimedOutEvent) {
return IModelDelta.CONTENT; return IModelDelta.CONTENT;
} else if (e instanceof ModelProxyInstalledEvent || e instanceof DataModelInitializedEvent) { } else if (e instanceof ModelProxyInstalledEvent || e instanceof DataModelInitializedEvent) {
@ -372,11 +370,6 @@ public abstract class AbstractThreadVMNode extends AbstractDMVMNode
// priority in updating. The thread will update as a result of // priority in updating. The thread will update as a result of
// FullStackRefreshEvent. // FullStackRefreshEvent.
rm.done(); rm.done();
} else if (e instanceof FullStackRefreshEvent) {
// Full-stack refresh event is generated following a suspended event
// and a fixed delay. Refresh the whole thread upon this event.
parentDelta.addNode(createVMContext(dmc), IModelDelta.CONTENT);
rm.done();
} else if (e instanceof SteppingTimedOutEvent) { } else if (e instanceof SteppingTimedOutEvent) {
// Stepping time-out indicates that a step operation is taking // Stepping time-out indicates that a step operation is taking
// a long time, and the view needs to be refreshed to show // a long time, and the view needs to be refreshed to show

View file

@ -544,7 +544,7 @@ public class StackFramesVMNode extends AbstractDMVMNode
if (e instanceof ISuspendedDMEvent) { if (e instanceof ISuspendedDMEvent) {
return IModelDelta.CONTENT | IModelDelta.EXPAND | IModelDelta.SELECT; return IModelDelta.CONTENT | IModelDelta.EXPAND | IModelDelta.SELECT;
} else if (e instanceof FullStackRefreshEvent) { } else if (e instanceof FullStackRefreshEvent) {
return IModelDelta.CONTENT | IModelDelta.EXPAND; return IModelDelta.CONTENT;
} else if (e instanceof SteppingTimedOutEvent) { } else if (e instanceof SteppingTimedOutEvent) {
return IModelDelta.CONTENT; return IModelDelta.CONTENT;
} else if (e instanceof ModelProxyInstalledEvent || e instanceof DataModelInitializedEvent) { } else if (e instanceof ModelProxyInstalledEvent || e instanceof DataModelInitializedEvent) {