Added address column to instruction editor
[Mograsim.git] / net.mograsim.plugin.core / src / net / mograsim / plugin / tables / TableRow.java
diff --git a/net.mograsim.plugin.core/src/net/mograsim/plugin/tables/TableRow.java b/net.mograsim.plugin.core/src/net/mograsim/plugin/tables/TableRow.java
new file mode 100644 (file)
index 0000000..46b7c5c
--- /dev/null
@@ -0,0 +1,23 @@
+package net.mograsim.plugin.tables;
+
+public class TableRow<T>
+{
+       public final T data;
+       public final long address;
+
+       public TableRow(long address, T data)
+       {
+               this.data = data;
+               this.address = address;
+       }
+
+       public T getData()
+       {
+               return data;
+       }
+
+       public long getAddress()
+       {
+               return address;
+       }
+}