Search in sources :

Example 1 with AnnotationParseRequest

use of org.kie.workbench.common.services.datamodeller.driver.model.AnnotationParseRequest in project kie-wb-common by kiegroup.

the class AdvancedAnnotationListEditor method doValuePairChange.

protected void doValuePairChange(final ValuePairEditorPopup valuePairEditor, final Object value) {
    if (valuePairEditor.isGenericEditor()) {
        String strValue = value != null ? value.toString() : null;
        modelerService.call(getValuePairChangeSuccessCallback(valuePairEditor)).resolveParseRequest(new AnnotationParseRequest(valuePairEditor.getAnnotationClassName(), elementType, valuePairEditor.getValuePairDefinition().getName(), strValue), module);
    } else {
        applyValuePairChange(valuePairEditor, value);
    }
}
Also used : AnnotationParseRequest(org.kie.workbench.common.services.datamodeller.driver.model.AnnotationParseRequest)

Aggregations

AnnotationParseRequest (org.kie.workbench.common.services.datamodeller.driver.model.AnnotationParseRequest)1