use of org.guvnor.m2repo.client.event.M2RepoRefreshEvent in project kie-wb-common by kiegroup.
the class M2RepoPerspective method getMenus.
@WorkbenchMenu
public void getMenus(final Consumer<Menus> menusConsumer) {
menusConsumer.accept(MenuFactory.newTopLevelMenu(AppConstants.INSTANCE.Upload()).respondsWith(() -> {
UploadFormPresenter uploadFormPresenter = iocManager.lookupBean(UploadFormPresenter.class).getInstance();
uploadFormPresenter.showView();
}).endMenu().newTopLevelMenu(AppConstants.INSTANCE.Refresh()).respondsWith(() -> refreshEvents.fire(new M2RepoRefreshEvent())).endMenu().build());
}
use of org.guvnor.m2repo.client.event.M2RepoRefreshEvent in project drools-wb by kiegroup.
the class M2RepoPerspective method getMenus.
@WorkbenchMenu
public Menus getMenus() {
return MenuFactory.newTopLevelMenu(AppConstants.INSTANCE.Upload()).respondsWith(new Command() {
@Override
public void execute() {
UploadFormPresenter uploadFormPresenter = iocManager.lookupBean(UploadFormPresenter.class).getInstance();
uploadFormPresenter.showView();
}
}).endMenu().newTopLevelMenu(AppConstants.INSTANCE.Refresh()).respondsWith(new Command() {
@Override
public void execute() {
refreshEvents.fire(new M2RepoRefreshEvent());
}
}).endMenu().build();
}
use of org.guvnor.m2repo.client.event.M2RepoRefreshEvent in project drools-wb by kiegroup.
the class M2RepoPerspective method getMenus.
@WorkbenchMenu
public void getMenus(final Consumer<Menus> menusConsumer) {
menusConsumer.accept(MenuFactory.newTopLevelMenu(AppConstants.INSTANCE.Upload()).respondsWith(() -> {
UploadFormPresenter uploadFormPresenter = iocManager.lookupBean(UploadFormPresenter.class).getInstance();
uploadFormPresenter.showView();
}).endMenu().newTopLevelMenu(AppConstants.INSTANCE.Refresh()).respondsWith(() -> refreshEvents.fire(new M2RepoRefreshEvent())).endMenu().build());
}
Aggregations