Skip to content

Commit

Permalink
Fix "Show checkpoint IDs"
Browse files Browse the repository at this point in the history
  • Loading branch information
jacodg committed Oct 31, 2024
1 parent cc7a182 commit d0f0b8b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 5 additions & 1 deletion src/main/java/nl/nn/testtool/echo2/Echo2Application.java
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ public Report getReport(Storage storage, Integer storageId, BaseComponent baseCo
return report;
}

public void openReport(Report report, String isOpenReportAllowed) {
public void openReport(Report report, String isOpenReportAllowed, boolean showCheckpointIds) {
// tabPane.setActiveTabIndex(0);
// reportsComponent.openReport(report, false);

Expand Down Expand Up @@ -319,6 +319,10 @@ public void openReport(Report report, String isOpenReportAllowed) {
report.setGlobalReportXmlTransformer(reportXmlTransformer);
treePane.addReport(report, views.getDefaultView(), false);
}

// After init

treePane.getReportsTreeCellRenderer().setShowReportAndCheckpointIds(showCheckpointIds);
}
}

Expand Down
4 changes: 1 addition & 3 deletions src/main/java/nl/nn/testtool/echo2/test/TestComponent.java
Original file line number Diff line number Diff line change
Expand Up @@ -692,13 +692,11 @@ public void actionPerformed(ActionEvent e) {
refresh();
} else if (e.getActionCommand().equals("ToggleCheckpointIds")) {
showCheckpointIds = showCheckpointIdsCheckbox.isSelected();
treePane.getReportsTreeCellRenderer().setShowReportAndCheckpointIds(showCheckpointIds);
} else if (e.getActionCommand().equals("RestoreDefaults")) {
showReportStorageIds = false;
showReportStorageIdsCheckbox.setSelected(false);
showCheckpointIds = false;
showCheckpointIdsCheckbox.setSelected(false);
treePane.getReportsTreeCellRenderer().setShowReportAndCheckpointIds(showCheckpointIds);
refresh();
} else if (e.getActionCommand().equals("DeleteSelected")) {
if (minimalOneSelected()) {
Expand Down Expand Up @@ -843,7 +841,7 @@ public void actionPerformed(ActionEvent e) {
Integer storageId = new Integer(row.getId());
RunResult runResult = reportRunner.getResults().get(storageId);
if (e.getActionCommand().equals("Open")) {
echo2Application.openReport(report, ReportsComponent.OPEN_REPORT_ALLOWED);
echo2Application.openReport(report, ReportsComponent.OPEN_REPORT_ALLOWED, showCheckpointIds);
} else {
Report runResultReport = getRunResultReport(runResult.correlationId);
if (runResultReport != null) {
Expand Down

0 comments on commit d0f0b8b

Please sign in to comment.