@Test public void testGetContentSupplier() throws Exception { final ScoreCardModel content = mock(ScoreCardModel.class); doReturn(content).when(view).getModel(); final Supplier<ScoreCardModel> contentSupplier = editor.getContentSupplier(); assertEquals(content, contentSupplier.get()); }
@Override protected Supplier<ScoreCardModel> getContentSupplier() { return () -> view.getModel(); }
GuidedScoreCardEditorPresenter extends KieEditor<ScoreCardModel> { @Override protected Supplier<ScoreCardModel> getContentSupplier() { return () -> view.getModel(); } }
GuidedScoreCardEditorPresenter extends KieEditor<ScoreCardModel> { @Override protected Supplier<ScoreCardModel> getContentSupplier() { return () -> view.getModel(); } @Inject  GuidedScoreCardEditorPresenter(final GuidedScoreCardEditorView baseView); }
GuidedScoreCardEditorPresenter extends KieEditor<ScoreCardModel> { @Override protected Supplier<ScoreCardModel> getContentSupplier() { return () -> view.getModel(); } @Inject  GuidedScoreCardEditorPresenter(final GuidedScoreCardEditorView baseView); @OnStartup void onStartup(final ObservablePath path,
                          final PlaceRequest place); void handleImportAddedEvent(@Observes ImportAddedEvent event); void handleImportRemovedEvent(@Observes ImportRemovedEvent event); @Override void onSourceTabSelected(); @WorkbenchPartView IsWidget getWidget(); @OnClose @Override void onClose(); @OnMayClose boolean mayClose(); @WorkbenchPartTitleDecoration IsWidget getTitle(); @WorkbenchPartTitle String getTitleText(); @WorkbenchMenu void getMenus(final Consumer<Menus> menusConsumer); }
GuidedScoreCardEditorPresenter extends KieEditor<ScoreCardModel> { @Override protected Supplier<ScoreCardModel> getContentSupplier() { return () -> view.getModel(); } @Inject  GuidedScoreCardEditorPresenter(final GuidedScoreCardEditorView baseView); @OnStartup void onStartup(final ObservablePath path,
                          final PlaceRequest place); void handleImportAddedEvent(@Observes ImportAddedEvent event); void handleImportRemovedEvent(@Observes ImportRemovedEvent event); @Override void onSourceTabSelected(); @WorkbenchPartView IsWidget getWidget(); @OnClose @Override void onClose(); @OnMayClose boolean mayClose(); @WorkbenchPartTitleDecoration IsWidget getTitle(); @WorkbenchPartTitle String getTitleText(); @WorkbenchMenu void getMenus(final Consumer<Menus> menusConsumer); static final String EDITOR_ID; }