Source:
<code>protected void onInitUI() { super.onInitUI(); final Change.Id changeId = patchKey.getParentKey().getParentKey(); final String path = patchKey.get(); String fileName = path; final int last = fileName.lastIndexOf('/'); if (last >= 0) { fileName = fileName.substring(last + 1); } setWindowTitle(PatchUtil.M.patchWindowTitle(changeId.get(), fileName)); setPageTitle(PatchUtil.M.patchPageTitle(changeId.get(), path)); historyTable = new HistoryTable(this); historyPanel = new DisclosurePanel(PatchUtil.C.patchHistoryTitle()); historyPanel.setContent(historyTable); historyPanel.setOpen(false); historyPanel.setVisible(false); add(historyPanel); noDifference = new Label(PatchUtil.C.noDifference()); noDifference.setStyleName("gerrit-PatchNoDifference"); noDifference.setVisible(false); contentTable = createContentTable(); contentTable.fileList = fileList; final FlowPanel fp = new FlowPanel(); fp.setStyleName("gerrit-SideBySideScreen-SideBySideTable"); fp.add(noDifference); fp.add(contentTable); add(fp); <START> FlexTable dp = new FlexTable(); <END> dp.setStyleName("gerrit-SideBySideScreen-LinkTable"); dp.getFlexCellFormatter().setHorizontalAlignment(0, 0, HasHorizontalAlignment.ALIGN_LEFT); dp.getFlexCellFormatter().setHorizontalAlignment(0, 1, HasHorizontalAlignment.ALIGN_RIGHT); if (fileList != null) { previousPatchLink = fileList.getPreviousPatchLink(patchIndex, getPatchType()); nextPatchLink = fileList.getNextPatchLink(patchIndex, getPatchType()); } dp.setWidget(0, 0, previousPatchLink); dp.setWidget(0, 1, nextPatchLink); add(dp); }</code><technical_language>this instance member. if fileList == null start async RPC populate real list in background insert next/prev links RPC completes</technical_language>

Target:
protected void onInitUI() { super.onInitUI(); final Change.Id changeId = patchKey.getParentKey().getParentKey(); final String path = patchKey.get(); String fileName = path; final int last = fileName.lastIndexOf('/'); if (last >= 0) { fileName = fileName.substring(last + 1); } setWindowTitle(PatchUtil.M.patchWindowTitle(changeId.get(), fileName)); setPageTitle(PatchUtil.M.patchPageTitle(changeId.get(), path)); historyTable = new HistoryTable(this); historyPanel = new DisclosurePanel(PatchUtil.C.patchHistoryTitle()); historyPanel.setContent(historyTable); historyPanel.setOpen(false); historyPanel.setVisible(false); add(historyPanel); noDifference = new Label(PatchUtil.C.noDifference()); noDifference.setStyleName("gerrit-PatchNoDifference"); noDifference.setVisible(false); contentTable = createContentTable(); contentTable.fileList = fileList; final FlowPanel fp = new FlowPanel(); fp.setStyleName("gerrit-SideBySideScreen-SideBySideTable"); fp.add(noDifference); fp.add(contentTable); add(fp); linkTable = new FlexTable(); linkTable.setStyleName("gerrit-SideBySideScreen-LinkTable"); linkTable.getFlexCellFormatter().setHorizontalAlignment(0, 0, HasHorizontalAlignment.ALIGN_LEFT); linkTable.getFlexCellFormatter().setHorizontalAlignment(0, 1, HasHorizontalAlignment.ALIGN_RIGHT); if (fileList != null) { previousPatchLink = fileList.getPreviousPatchLink(patchIndex, getPatchScreenType()); nextPatchLink = fileList.getNextPatchLink(patchIndex, getPatchScreenType()); } linkTable.setWidget(0, 0, previousPatchLink); linkTable.setWidget(0, 1, nextPatchLink); add(linkTable); }