public void showReport(final AnalysisReport report) { currentReport = report; if (!report.getAnalysisData().isEmpty()) { placeManager.goTo(IDENTIFIER); } else { placeManager.closePlace(IDENTIFIER); } dataProvider.setList(report.getAnalysisData()); if (dataProvider.getList().isEmpty()) { view.clearIssue(); } else { view.show(dataProvider.getList().get(0)); } }
public void close() { placeManager.closePlace(this.place); }
public void onDTableClose(@Observes ClosePlaceEvent event) { if (currentReport != null && event.getPlace().equals(currentReport.getPlace())) { placeManager.closePlace(IDENTIFIER); } }