The final restructured version for automatic build using maven tycho
[Mograsim.git] / plugins / net.mograsim.plugin.core / src / net / mograsim / plugin / tables / AddressLabelProvider.java
1 package net.mograsim.plugin.tables;
2
3 import java.math.BigInteger;
4
5 import org.eclipse.jface.viewers.ColumnLabelProvider;
6
7 import net.mograsim.plugin.asm.AsmNumberUtil;
8 import net.mograsim.plugin.asm.AsmNumberUtil.NumberType;
9
10 public class AddressLabelProvider extends ColumnLabelProvider
11 {
12         @Override
13         public String getText(Object element)
14         {
15                 @SuppressWarnings("rawtypes")
16                 TableRow row = (TableRow) element;
17                 return AsmNumberUtil.toString(BigInteger.valueOf(row.address), NumberType.HEXADECIMAL);
18         }
19 }