mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Added flushing of the VM cache when the expression list is changed (bug 185635).
This commit is contained in:
parent
003f06ca0b
commit
2088e2a8a7
1 changed files with 2 additions and 0 deletions
|
@ -22,6 +22,7 @@ import org.eclipse.dd.dsf.ui.viewmodel.AbstractVMProvider;
|
|||
import org.eclipse.dd.dsf.ui.viewmodel.IVMLayoutNode;
|
||||
import org.eclipse.dd.dsf.ui.viewmodel.VMDelta;
|
||||
import org.eclipse.dd.dsf.ui.viewmodel.VMElementsUpdate;
|
||||
import org.eclipse.dd.dsf.ui.viewmodel.update.VMCacheManager;
|
||||
import org.eclipse.debug.core.DebugPlugin;
|
||||
import org.eclipse.debug.core.IExpressionManager;
|
||||
import org.eclipse.debug.core.model.IExpression;
|
||||
|
@ -295,6 +296,7 @@ public class ExpressionManagerLayoutNode extends AbstractVMLayoutNode
|
|||
public void buildDelta(final Object event, final VMDelta parentDelta, final int nodeOffset, final RequestMonitor requestMonitor) {
|
||||
// Add a flag if the list of expressions has changed.
|
||||
if (event instanceof ExpressionsChangedEvent) {
|
||||
VMCacheManager.getVMCacheManager().flush(super.getVMProvider().getPresentationContext());
|
||||
parentDelta.addFlags(IModelDelta.CONTENT);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue