Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Bloofer/6893acc438b55d19f61fbda8a1c8bb92 to your computer and use it in GitHub Desktop.
Save Bloofer/6893acc438b55d19f61fbda8a1c8bb92 to your computer and use it in GitHub Desktop.
Deckard clone snippet #2 - AbstractAsyncTableRendering.java
if (data instanceof MemorySegment) {
MemorySegment line = (MemorySegment) data;
if (col > 0) {
int start = (col - 1) * getBytesPerColumn();
int end = start + getBytesPerColumn();
MemoryByte[] bytes = line.getBytes(start, end);
String str = getToolTipText((BigInteger)address, bytes);
if (str != null)
((Label) toolTipControl).setText(str);
} else {
String str = getToolTipText((BigInteger)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