Search in sources :

Example 16 with HasBusyIndicatorDefaultErrorCallback

use of org.uberfire.ext.widgets.common.client.callbacks.HasBusyIndicatorDefaultErrorCallback in project drools-wb by kiegroup.

the class NewTestScenarioHandler method create.

@Override
public void create(final Package pkg, final String baseFileName, final NewResourcePresenter presenter) {
    busyIndicatorView.showBusyIndicator(CommonConstants.INSTANCE.Saving());
    service.call(getSuccessCallback(presenter), new HasBusyIndicatorDefaultErrorCallback(busyIndicatorView)).create(pkg.getPackageTestResourcesPath(), buildFileName(baseFileName, resourceType), new Scenario(pkg.getPackageName(), baseFileName), "");
}
Also used : HasBusyIndicatorDefaultErrorCallback(org.uberfire.ext.widgets.common.client.callbacks.HasBusyIndicatorDefaultErrorCallback) Scenario(org.drools.workbench.models.testscenarios.shared.Scenario)

Example 17 with HasBusyIndicatorDefaultErrorCallback

use of org.uberfire.ext.widgets.common.client.callbacks.HasBusyIndicatorDefaultErrorCallback in project drools-wb by kiegroup.

the class NewDrlTextHandler method create.

@Override
public void create(final Package pkg, final String baseFileName, final NewResourcePresenter presenter) {
    final boolean useDSL = useDSLCheckbox.getValue();
    final ClientResourceType resourceType = (useDSL ? resourceTypeDSLR : resourceTypeDRL);
    busyIndicatorView.showBusyIndicator(CommonConstants.INSTANCE.Saving());
    drlTextService.call(getSuccessCallback(presenter), new HasBusyIndicatorDefaultErrorCallback(busyIndicatorView)).create(pkg.getPackageMainResourcesPath(), buildFileName(baseFileName, resourceType), "", "");
}
Also used : HasBusyIndicatorDefaultErrorCallback(org.uberfire.ext.widgets.common.client.callbacks.HasBusyIndicatorDefaultErrorCallback) ClientResourceType(org.uberfire.client.workbench.type.ClientResourceType)

Aggregations

HasBusyIndicatorDefaultErrorCallback (org.uberfire.ext.widgets.common.client.callbacks.HasBusyIndicatorDefaultErrorCallback)17 GuidedDecisionTable52 (org.drools.workbench.models.guided.dtable.shared.model.GuidedDecisionTable52)3 RemoteCallback (org.jboss.errai.common.client.api.RemoteCallback)3 HashMap (java.util.HashMap)2 ObservablePath (org.uberfire.backend.vfs.ObservablePath)2 Path (org.uberfire.backend.vfs.Path)2 ClientResourceType (org.uberfire.client.workbench.type.ClientResourceType)2 NotificationEvent (org.uberfire.workbench.events.NotificationEvent)2 ArrayList (java.util.ArrayList)1 Collection (java.util.Collection)1 List (java.util.List)1 Map (java.util.Map)1 RuleModel (org.drools.workbench.models.datamodel.rule.RuleModel)1 MetadataCol52 (org.drools.workbench.models.guided.dtable.shared.model.MetadataCol52)1 GuidedDecisionTree (org.drools.workbench.models.guided.dtree.shared.model.GuidedDecisionTree)1 ScoreCardModel (org.drools.workbench.models.guided.scorecard.shared.ScoreCardModel)1 TemplateModel (org.drools.workbench.models.guided.template.shared.TemplateModel)1 Scenario (org.drools.workbench.models.testscenarios.shared.Scenario)1 GlobalsModel (org.drools.workbench.screens.globals.model.GlobalsModel)1 GuidedDecisionTableView (org.drools.workbench.screens.guided.dtable.client.widget.table.GuidedDecisionTableView)1