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:
parent
77b28bc8d7
commit
e5cff7aaeb
1 changed files with 13 additions and 0 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue