@Test public void testGetContentSupplier() { final ProjectImports content = mock(ProjectImports.class); presenter.setModel(content); final Supplier<ProjectImports> contentSupplier = presenter.getContentSupplier(); assertEquals(content, contentSupplier.get()); }
@Override protected Supplier<ProjectImports> getContentSupplier() { return () -> model; }
ProjectImportsScreenPresenter extends KieEditor<ProjectImports> { @Override protected Supplier<ProjectImports> getContentSupplier() { return () -> model; } }
ProjectImportsScreenPresenter extends KieEditor<ProjectImports> { @Override protected Supplier<ProjectImports> getContentSupplier() { return () -> model; } ProjectImportsScreenPresenter(); @Inject  ProjectImportsScreenPresenter(final ProjectImportsScreenView view,
                                         final Caller<ProjectImportsService> importsService,
                                         final Others category); }
ProjectImportsScreenPresenter extends KieEditor<ProjectImports> { @Override protected Supplier<ProjectImports> getContentSupplier() { return () -> model; } ProjectImportsScreenPresenter(); @Inject  ProjectImportsScreenPresenter(final ProjectImportsScreenView view,
                                         final Caller<ProjectImportsService> importsService,
                                         final Others category); @OnStartup void init(final ObservablePath path,
                     final PlaceRequest place); @WorkbenchPartTitle String getTitleText(); @WorkbenchPartView IsWidget asWidget(); @OnClose @Override void onClose(); @WorkbenchMenu void getMenus(final Consumer<Menus> menusConsumer); @OnMayClose boolean mayClose(); }
ProjectImportsScreenPresenter extends KieEditor<ProjectImports> { @Override protected Supplier<ProjectImports> getContentSupplier() { return () -> model; } ProjectImportsScreenPresenter(); @Inject  ProjectImportsScreenPresenter(final ProjectImportsScreenView view,
                                         final Caller<ProjectImportsService> importsService,
                                         final Others category); @OnStartup void init(final ObservablePath path,
                     final PlaceRequest place); @WorkbenchPartTitle String getTitleText(); @WorkbenchPartView IsWidget asWidget(); @OnClose @Override void onClose(); @WorkbenchMenu void getMenus(final Consumer<Menus> menusConsumer); @OnMayClose boolean mayClose(); static final String EDITOR_ID; }