use of org.uberfire.client.workbench.type.ClientResourceType in project drools-wb by kiegroup.
the class NewDrlTextHandler method getResourceType.
@Override
public ResourceTypeDefinition getResourceType() {
final boolean useDSL = useDSLCheckbox.getValue();
final ClientResourceType resourceType = (useDSL ? resourceTypeDSLR : resourceTypeDRL);
return resourceType;
}
use of org.uberfire.client.workbench.type.ClientResourceType in project drools-wb by kiegroup.
the class NewGuidedRuleHandler method getResourceType.
@Override
public ResourceTypeDefinition getResourceType() {
final boolean useDSL = useDSLCheckbox.getValue();
final ClientResourceType resourceType = (useDSL ? resourceTypeDSLR : resourceTypeDRL);
return resourceType;
}
use of org.uberfire.client.workbench.type.ClientResourceType in project drools-wb by kiegroup.
the class NewGuidedRuleHandler method create.
@Override
public void create(final Package pkg, final String baseFileName, final NewResourcePresenter presenter) {
final RuleModel ruleModel = new RuleModel();
final boolean useDSL = useDSLCheckbox.getValue();
final ClientResourceType resourceType = (useDSL ? resourceTypeDSLR : resourceTypeDRL);
ruleModel.name = baseFileName;
busyIndicatorView.showBusyIndicator(CommonConstants.INSTANCE.Saving());
service.call(getSuccessCallback(presenter), new HasBusyIndicatorDefaultErrorCallback(busyIndicatorView)).create(pkg.getPackageMainResourcesPath(), buildFileName(baseFileName, resourceType), ruleModel, "");
}
use of org.uberfire.client.workbench.type.ClientResourceType in project drools-wb by kiegroup.
the class DecisionTableXLSEditorPresenter method onStartup.
@OnStartup
public void onStartup(final ObservablePath path, final PlaceRequest place) {
ClientResourceType type = getType(path);
super.init(path, place, type);
view.init(this);
view.setupUploadWidget(type);
}
use of org.uberfire.client.workbench.type.ClientResourceType 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), "", "");
}
Aggregations