1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

[253405] Traditional Rendering should support DSF IMemoryBlockUpdatePolicyProvider clearCache API

This commit is contained in:
Ted Williams 2008-11-03 23:13:44 +00:00
parent 77b28bc8d7
commit e5cff7aaeb

View file

@ -11,6 +11,8 @@
package org.eclipse.dd.debug.memory.renderings.traditional; package org.eclipse.dd.debug.memory.renderings.traditional;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.math.BigInteger; import java.math.BigInteger;
import org.eclipse.core.commands.AbstractHandler; import org.eclipse.core.commands.AbstractHandler;
@ -625,6 +627,17 @@ public class TraditionalRendering extends AbstractMemoryRendering implements IRe
{ {
public void run() public void run()
{ {
// For compatibility with DSF update modes (hopefully this will either be replaced by an enhanced
// platform interface or the caching will move out of the data layer
try {
Method m = fRendering.getMemoryBlock().getClass().getMethod("clearCache", new Class[0]);
if(m != null)
m.invoke(fRendering.getMemoryBlock(), new Object[0]);
}
catch (Exception e)
{
}
TraditionalRendering.this.fRendering.refresh(); TraditionalRendering.this.fRendering.refresh();
} }
}); });