X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=plugins%2Fnet.mograsim.plugin.core%2Fsrc%2Fnet%2Fmograsim%2Fplugin%2Ftables%2Fmemory%2FMemoryCellEditingSupport.java;h=deaabe26abe118bc7a956d8f4cf2dba049df7323;hb=6d80fa458ec324491663d7640e8d079aa0e44953;hp=46eefcd91492d9306be1276d509bf44b12f28892;hpb=7d05144c25daa53e60fc9ed9fd503546a86567f8;p=Mograsim.git diff --git a/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/tables/memory/MemoryCellEditingSupport.java b/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/tables/memory/MemoryCellEditingSupport.java index 46eefcd9..deaabe26 100644 --- a/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/tables/memory/MemoryCellEditingSupport.java +++ b/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/tables/memory/MemoryCellEditingSupport.java @@ -27,4 +27,10 @@ public class MemoryCellEditingSupport extends NumberCellEditingSupport MemoryTableRow row = (MemoryTableRow) element; return row.getMemory().getCellAsBigInteger(row.address); } + + @Override + public int getBitLength(Object element) + { + return ((MemoryTableRow) element).getMemory().getDefinition().getCellWidth(); + } } \ No newline at end of file