class M2RepoEditorPresenter implements RefreshMenuBuilder.SupportsRefresh {

    @WorkbenchMenu
    public void getMenus(final Consumer<Menus> menusConsumer) {
        menusConsumer.accept(MenuFactory.newTopLevelMenu(constants.Upload())
                .respondsWith(() -> uploadFormPresenter.showView())
                .endMenu()
                .newTopLevelCustomMenu(new RefreshMenuBuilder(this))
                .endMenu()
                .build());
    }

    @Inject public  M2RepoEditorPresenter(final Event<M2RepoRefreshEvent> refreshEvents,
                                 final UploadFormPresenter uploadFormPresenter,
                                 final MavenRepositoryPagedJarTable view);

}