@Inject public AnalysisReportScreen( final AnalysisReportScreenView view, final PlaceManager placeManager) { this.view = view; this.placeManager = placeManager; view.setPresenter(this); view.setUpDataProvider(dataProvider); }
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 onSelect(final Issue issue) { view.show(issue); }
@WorkbenchPartView public Widget asWidget() { return view.asWidget(); }