Пример #1
0
  @Inject
  public AnalysisReportScreen(
      final AnalysisReportScreenView view, final PlaceManager placeManager) {
    this.view = view;
    this.placeManager = placeManager;

    view.setPresenter(this);
    view.setUpDataProvider(dataProvider);
  }
Пример #2
0
  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));
    }
  }
Пример #3
0
 public void onSelect(final Issue issue) {
   view.show(issue);
 }
Пример #4
0
 @WorkbenchPartView
 public Widget asWidget() {
   return view.asWidget();
 }