return horiz;
}
protected void showAddFieldPopup( Widget w ) {
final PackageDataModelOracle completions = this.getModeller().getSuggestionCompletions();
final FormStylePopup popup = new FormStylePopup( GuidedRuleEditorImages508.INSTANCE.Wizard(),
Constants.INSTANCE.ChooseAMethodToInvoke() );
final ListBox box = new ListBox();
box.addItem( "..." );
for ( int i = 0; i < fieldCompletionTexts.length; i++ ) {
box.addItem( fieldCompletionTexts[ i ],
fieldCompletionValues[ i ] );
}
box.setSelectedIndex( 0 );
popup.addAttribute( Constants.INSTANCE.ChooseAMethodToInvoke(),
box );
box.addChangeHandler( new ChangeHandler() {
public void onChange( ChangeEvent event ) {
model.setState( ActionCallMethod.TYPE_DEFINED );
String methodName = box.getItemText( box.getSelectedIndex() );
String methodNameWithParams = box.getValue( box.getSelectedIndex() );
model.setMethodName( methodName );
List<String> fieldList = new ArrayList<String>();
fieldList.addAll( completions.getMethodParams( variableClass,
methodNameWithParams ) );
int i = 0;
for ( String fieldParameter : fieldList ) {
model.addFieldValue( new ActionFieldFunction( methodName,