@Test public void registerDock() { presenter.registerDock("test", mock(IsWidget.class)); verify(placeManager).registerOnOpenCallback(placeRequestArgumentCaptor.capture(), any(Command.class)); final PlaceRequest placeRequest = placeRequestArgumentCaptor.getValue(); assertEquals("org.docks.PlaceHolder", placeRequest.getIdentifier()); final Map<String, String> parameters = placeRequest.getParameters(); assertEquals(1, parameters.size()); assertEquals("test", parameters.get("name")); }
protected void registerDock(final String id, final IsWidget widget) { final DockPlaceHolderPlace placeRequest = new DockPlaceHolderPlace(id); placeManager.registerOnOpenCallback(placeRequest, () -> { if (getDockPresenter(placeRequest).isPresent()) { getDockPresenter(placeRequest).get().setWidget(widget); } }); }
KieEditor extends BaseEditor<T, Metadata> implements KieEditorWrapperView.KieEditorWrapperPresenter { protected void registerDock(final String id, final IsWidget widget) { final DockPlaceHolderPlace placeRequest = new DockPlaceHolderPlace(id); placeManager.registerOnOpenCallback(placeRequest, () -> { if (getDockPresenter(placeRequest).isPresent()) { getDockPresenter(placeRequest).get().setWidget(widget); } }); } }
KieEditor extends BaseEditor<T, Metadata> implements KieEditorWrapperView.KieEditorWrapperPresenter { protected void registerDock(final String id, final IsWidget widget) { final DockPlaceHolderPlace placeRequest = new DockPlaceHolderPlace(id); placeManager.registerOnOpenCallback(placeRequest, () -> { if (getDockPresenter(placeRequest).isPresent()) { getDockPresenter(placeRequest).get().setWidget(widget); } }); } protected  KieEditor(); protected  KieEditor(final KieEditorView baseView); }
KieEditor extends BaseEditor<T, Metadata> implements KieEditorWrapperView.KieEditorWrapperPresenter { protected void registerDock(final String id, final IsWidget widget) { final DockPlaceHolderPlace placeRequest = new DockPlaceHolderPlace(id); placeManager.registerOnOpenCallback(placeRequest, () -> { if (getDockPresenter(placeRequest).isPresent()) { getDockPresenter(placeRequest).get().setWidget(widget); } }); } protected  KieEditor(); protected  KieEditor(final KieEditorView baseView); void onShowDiagramEditorDocks(@Observes PlaceGainFocusEvent event); void onHideDocks(@Observes PlaceHiddenEvent event); void showDocks(); void hideDocks(); boolean verifyEventIdentifier(AbstractPlaceEvent event); @Override void setOriginalHash(Integer originalHash); boolean mayClose(Object object); @OnClose void onClose(); void addDownloadMenuItem(final FileMenuBuilder fileMenuBuilder); @Override Validator getRenameValidator(); void setSelectedTab(int index); IsWidget getWidget(); void onRepositoryRemoved(final @Observes RepositoryRemovedEvent event); @Override boolean mayClose(Integer currentHash); @Override void onOverviewSelected(); @Override void onSourceTabSelected(); @Override void onEditTabSelected(); @Override void onEditTabUnselected(); void addTabBarWidget(final IsWidget customWidget); }
KieEditor extends BaseEditor<T, Metadata> implements KieEditorWrapperView.KieEditorWrapperPresenter { protected void registerDock(final String id, final IsWidget widget) { final DockPlaceHolderPlace placeRequest = new DockPlaceHolderPlace(id); placeManager.registerOnOpenCallback(placeRequest, () -> { if (getDockPresenter(placeRequest).isPresent()) { getDockPresenter(placeRequest).get().setWidget(widget); } }); } protected  KieEditor(); protected  KieEditor(final KieEditorView baseView); void onShowDiagramEditorDocks(@Observes PlaceGainFocusEvent event); void onHideDocks(@Observes PlaceHiddenEvent event); void showDocks(); void hideDocks(); boolean verifyEventIdentifier(AbstractPlaceEvent event); @Override void setOriginalHash(Integer originalHash); boolean mayClose(Object object); @OnClose void onClose(); void addDownloadMenuItem(final FileMenuBuilder fileMenuBuilder); @Override Validator getRenameValidator(); void setSelectedTab(int index); IsWidget getWidget(); void onRepositoryRemoved(final @Observes RepositoryRemovedEvent event); @Override boolean mayClose(Integer currentHash); @Override void onOverviewSelected(); @Override void onSourceTabSelected(); @Override void onEditTabSelected(); @Override void onEditTabUnselected(); void addTabBarWidget(final IsWidget customWidget);  }