Search in sources :

Example 6 with ProviderTypeListRefreshEvent

use of org.guvnor.ala.ui.client.events.ProviderTypeListRefreshEvent in project kie-wb-common by kiegroup.

the class EnableProviderTypeWizard method onEnableTypesSuccess.

private void onEnableTypesSuccess(final Collection<ProviderType> providerTypes) {
    notification.fire(new NotificationEvent(translationService.getTranslation(EnableProviderTypeWizard_ProviderTypeEnableSuccessMessage), NotificationEvent.NotificationType.SUCCESS));
    EnableProviderTypeWizard.super.complete();
    providerTypeListRefreshEvent.fire(new ProviderTypeListRefreshEvent(providerTypes.iterator().next().getKey()));
}
Also used : ProviderTypeListRefreshEvent(org.guvnor.ala.ui.client.events.ProviderTypeListRefreshEvent) NotificationEvent(org.uberfire.workbench.events.NotificationEvent)

Aggregations

ProviderTypeListRefreshEvent (org.guvnor.ala.ui.client.events.ProviderTypeListRefreshEvent)6 Test (org.junit.Test)5 ProviderType (org.guvnor.ala.ui.model.ProviderType)2 NotificationEvent (org.uberfire.workbench.events.NotificationEvent)2 ProviderTypeSelectedEvent (org.guvnor.ala.ui.client.events.ProviderTypeSelectedEvent)1 Command (org.uberfire.mvp.Command)1