}
final CustomFormPopUp customFormPopUp = new CustomFormPopUp( GuidedRuleEditorImages508.INSTANCE.Wizard(),
Constants.INSTANCE.FieldValue(),
customFormConfiguration );
final SingleFieldConstraint sfc = (SingleFieldConstraint) con;
customFormPopUp.addOkButtonHandler( new ClickHandler() {
public void onClick( ClickEvent event ) {
sfc.setConstraintValueType( SingleFieldConstraint.TYPE_LITERAL );
sfc.setId( customFormPopUp.getFormId() );
sfc.setValue( customFormPopUp.getFormValue() );
doTypeChosen( customFormPopUp );
}
} );
customFormPopUp.show( sfc.getId(),
sfc.getValue() );
return;
}
final FormStylePopup form = new FormStylePopup( GuidedRuleEditorImages508.INSTANCE.Wizard(),
Constants.INSTANCE.FieldValue() );
Button lit = new Button( Constants.INSTANCE.LiteralValue() );
lit.addClickHandler( new ClickHandler() {
public void onClick( ClickEvent event ) {
con.setConstraintValueType( isDropDownDataEnum && dropDownData != null ? SingleFieldConstraint.TYPE_ENUM : SingleFieldConstraint.TYPE_LITERAL );
doTypeChosen( form );
}
} );
boolean showLiteralSelector = true;
boolean showFormulaSelector = !OperatorsOracle.operatorRequiresList( con.getOperator() );
boolean showVariableSelector = !OperatorsOracle.operatorRequiresList( con.getOperator() );
boolean showExpressionSelector = !OperatorsOracle.operatorRequiresList( con.getOperator() );
if ( con instanceof SingleFieldConstraint ) {
SingleFieldConstraint sfc = (SingleFieldConstraint) con;
String fieldName = sfc.getFieldName();
if ( fieldName.equals( DataType.TYPE_THIS ) ) {
showLiteralSelector = CEPOracle.isCEPOperator( sfc.getOperator() );
showFormulaSelector = showFormulaSelector && showLiteralSelector;
}
} else if ( con instanceof ConnectiveConstraint ) {
ConnectiveConstraint cc = (ConnectiveConstraint) con;
String fieldName = cc.getFieldName();