@Test public void testDisplayString_CommentsLocation() { Address address = addr(TEST_ADDRESS); int[] componentPath = null; String commentText = "Repeatable Comment"; String[] comment = new String[] { commentText }; int row = 0; int charOffset = 0; int commentRow = 0; RepeatableCommentFieldLocation location = new RepeatableCommentFieldLocation(program, address, componentPath, comment, row, charOffset, commentRow); PreviewTableCellData data = new PreviewTableCellData(location, formatter); String preview = data.getDisplayString(); assertEquals(commentText, preview); }
public String getDisplayString() { if (displayString != null) { return displayString; } displayString = getPreview(false); return displayString; }
PreviewTableCellData implements Comparable<PreviewTableCellData> { public String getDisplayString() { if (displayString != null) { return displayString; } displayString = getPreview(false); return displayString; } }
PreviewTableCellData implements Comparable<PreviewTableCellData> { public String getDisplayString() { if (displayString != null) { return displayString; } displayString = getPreview(false); return displayString; } PreviewTableCellData(ProgramLocation location, CodeUnitFormat codeUnitFormat); }
PreviewTableCellData implements Comparable<PreviewTableCellData> { public String getDisplayString() { if (displayString != null) { return displayString; } displayString = getPreview(false); return displayString; } PreviewTableCellData(ProgramLocation location, CodeUnitFormat codeUnitFormat); boolean isOffcut(); String getDisplayString(); @Override String toString(); String getHTMLDisplayString(); ProgramLocation getProgramLocation(); @Override int compareTo(PreviewTableCellData data); }
PreviewTableCellData implements Comparable<PreviewTableCellData> { public String getDisplayString() { if (displayString != null) { return displayString; } displayString = getPreview(false); return displayString; } PreviewTableCellData(ProgramLocation location, CodeUnitFormat codeUnitFormat); boolean isOffcut(); String getDisplayString(); @Override String toString(); String getHTMLDisplayString(); ProgramLocation getProgramLocation(); @Override int compareTo(PreviewTableCellData data);  }