final FormStylePopup pop = new FormStylePopup();
pop.setTitle( constants.SetTheOperator() );
pop.setModal( false );
String[] ops = this.sce.getOperatorCompletions( editingPattern.getFactType(),
editingCol.getFactField() );
final CEPOperatorsDropdown box = new CEPOperatorsDropdown( ops,
editingCol );
if ( BaseSingleFieldConstraint.TYPE_LITERAL == this.editingCol
.getConstraintValueType() ) {
box.addItem( HumanReadable.getOperatorDisplayName( "in" ),
"in" );
}
box.addItem( constants.noOperator(),
"" );
pop.addAttribute( constants.Operator(),
box );
Button b = new Button( constants.OK() );
pop.addAttribute( "",
b );
b.addClickHandler( new ClickHandler() {
public void onClick(ClickEvent w) {
editingCol.setOperator( box.getValue( box.getSelectedIndex() ) );
doOperatorLabel();
pop.hide();
}
} );
pop.show();