Transferred the simple build instructions into the README
[Mograsim.git] / plugins / net.mograsim.plugin.core / src / net / mograsim / plugin / tables / memory / MemoryTableContentProvider.java
index aaecc75..95d1835 100644 (file)
@@ -74,6 +74,7 @@ public class MemoryTableContentProvider implements ILazyContentProvider, MemoryO
        @Override
        public void update(long address)
        {
-               Display.getDefault().asyncExec(() -> updateElement((int) (address - lower)));
+               // TODO check if viewer.refresh() does what we expect
+               Display.getDefault().asyncExec(address == -1 ? viewer::refresh : () -> updateElement((int) (address - lower)));
        }
 }