Created
January 8, 2018 08:47
-
-
Save Bloofer/2be2f83ecc21def2399dc094ce073dd7 to your computer and use it in GitHub Desktop.
Deckard clone snippet #2 - AbstractTableRendering.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (address != null) { | |
Object data = item.getData(); | |
if (data instanceof TableRenderingLine) { | |
TableRenderingLine line = (TableRenderingLine) data; | |
if (col > 0) { | |
int start = (col - 1) * getBytesPerColumn(); | |
int end = start + getBytesPerColumn(); | |
MemoryByte[] bytes = line.getBytes(start, end); | |
String str = getToolTipText(address, bytes); | |
if (str != null) | |
((Label) toolTipControl).setText(str); | |
} else { | |
String str = getToolTipText(address, | |
new MemoryByte[] {}); | |
if (str != null) | |
((Label) toolTipControl).setText(str); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment