- if (event.getSymbol() instanceof TmfStateValue) {
- ITmfStateValue symbol = (ITmfStateValue) event.getSymbol();
- switch (symbol.getType()) {
- case LONG:
- Long longAddress = symbol.unboxLong();
- funcSymbol = symbolProvider.getSymbolText(longAddress);
- if (funcSymbol == null) {
- return "0x" + Long.toHexString(longAddress); //$NON-NLS-1$
- }
- return funcSymbol;
- case STRING:
- return symbol.unboxStr();
- case INTEGER:
- Integer intAddress = symbol.unboxInt();
- funcSymbol = symbolProvider.getSymbolText(intAddress);
- if (funcSymbol == null) {
- return "0x" + Integer.toHexString(intAddress); //$NON-NLS-1$
- }
- return funcSymbol;
- case CUSTOM:
- case DOUBLE:
- case NULL:
- default:
- break;
+ if (event.getSymbol() instanceof Long || event.getSymbol() instanceof Integer) {
+ long longAddress = ((Long) event.getSymbol()).longValue();
+ funcSymbol = symbolProvider.getSymbolText(longAddress);
+ if (funcSymbol == null) {
+ return "0x" + Long.toHexString(longAddress); //$NON-NLS-1$