Numbers in MemoryView and mpm editor now have leading zeros
[Mograsim.git] / plugins / net.mograsim.plugin.core / src / net / mograsim / plugin / tables / memory / MemoryCellEditingSupport.java
index 46eefcd..deaabe2 100644 (file)
@@ -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