@Test public void registerDock() { editor.registerDock("test", mock(IsWidget.class)); verify(placeManager).registerOnOpenCallback(placeRequestArgumentCaptor.capture(), any(Command.class)); final PlaceRequest placeRequest = placeRequestArgumentCaptor.getValue(); Assertions.assertThat(placeRequest) .hasFieldOrPropertyWithValue("identifier", "org.docks.PlaceHolder") .hasFieldOrPropertyWithValue("parameters", Collections.singletonMap("name", "test")); }
protected void registerDock(final String id, final IsWidget widget) { final DockPlaceHolderPlace placeRequest = new DockPlaceHolderPlace(id); registerDock(placeRequest, widget); }
KieMultipleDocumentEditor implements KieMultipleDocumentEditorPresenter<D> { protected void registerDock(final String id, final IsWidget widget) { final DockPlaceHolderPlace placeRequest = new DockPlaceHolderPlace(id); registerDock(placeRequest, widget); } }
KieMultipleDocumentEditor implements KieMultipleDocumentEditorPresenter<D> { protected void registerDock(final String id, final IsWidget widget) { final DockPlaceHolderPlace placeRequest = new DockPlaceHolderPlace(id); registerDock(placeRequest, widget); } KieMultipleDocumentEditor();  KieMultipleDocumentEditor(final KieEditorView editorView); }
KieMultipleDocumentEditor implements KieMultipleDocumentEditorPresenter<D> { protected void registerDock(final String id, final IsWidget widget) { final DockPlaceHolderPlace placeRequest = new DockPlaceHolderPlace(id); registerDock(placeRequest, widget); } KieMultipleDocumentEditor();  KieMultipleDocumentEditor(final KieEditorView editorView); @Override void registerDocument(final D document); @Override void deregisterDocument(final D document); @Override void activateDocument(final D document,
                                 final Overview overview,
                                 final AsyncPackageDataModelOracle dmo,
                                 final Imports imports,
                                 final boolean isReadOnly); @Override D getActiveDocument(); @Override IsWidget getWidget(); @Override IsWidget getTitleWidget(final D document); @Override void getMenus(final Consumer<Menus> menusConsumer); @Override void onClose(); @Override void onSourceTabSelected(); @Override void updateSource(final String source); @Override void onEditTabSelected(); @Override void onEditTabUnselected(); @Override void onOverviewSelected(); @Override boolean mayClose(final Integer originalHashCode,
                            final Integer currentHashCode); @Override Promise<Void> makeMenuBar(); }
KieMultipleDocumentEditor implements KieMultipleDocumentEditorPresenter<D> { protected void registerDock(final String id, final IsWidget widget) { final DockPlaceHolderPlace placeRequest = new DockPlaceHolderPlace(id); registerDock(placeRequest, widget); } KieMultipleDocumentEditor();  KieMultipleDocumentEditor(final KieEditorView editorView); @Override void registerDocument(final D document); @Override void deregisterDocument(final D document); @Override void activateDocument(final D document,
                                 final Overview overview,
                                 final AsyncPackageDataModelOracle dmo,
                                 final Imports imports,
                                 final boolean isReadOnly); @Override D getActiveDocument(); @Override IsWidget getWidget(); @Override IsWidget getTitleWidget(final D document); @Override void getMenus(final Consumer<Menus> menusConsumer); @Override void onClose(); @Override void onSourceTabSelected(); @Override void updateSource(final String source); @Override void onEditTabSelected(); @Override void onEditTabUnselected(); @Override void onOverviewSelected(); @Override boolean mayClose(final Integer originalHashCode,
                            final Integer currentHashCode); @Override Promise<Void> makeMenuBar();  }