Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Bloofer/2be2f83ecc21def2399dc094ce073dd7 to your computer and use it in GitHub Desktop.
Save Bloofer/2be2f83ecc21def2399dc094ce073dd7 to your computer and use it in GitHub Desktop.
Deckard clone snippet #2 - AbstractTableRendering.java
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