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, String.valueOf( i ), fieldParameter ) ); i++; } getModeller().refreshWidget(); popup.hide(); } } );
acm.addFieldValue( new ActionFieldFunction( null, adjustParam( dataType, param, isJavaDialect ), dataType ) );
acm.setMethodName( "method" ); acm.setVariable( "$p" ); acm.addFieldValue( new ActionFieldFunction( "f1", "String", DataType.TYPE_STRING ) ); acm.addFieldValue( new ActionFieldFunction( "f2", "true", DataType.TYPE_BOOLEAN ) ); acm.addFieldValue( new ActionFieldFunction( "f3", "31-Jan-2012", DataType.TYPE_DATE ) ); acm.addFieldValue( new ActionFieldFunction( "f4", "100", DataType.TYPE_NUMERIC_INTEGER ) ); acm.addFieldValue( new ActionFieldFunction( "f5", "100", DataType.TYPE_NUMERIC_BIGDECIMAL ) );
acm.setMethodName( "method" ); acm.setVariable( "$p" ); acm.addFieldValue( new ActionFieldFunction( "f1", "String", DataType.TYPE_STRING ) ); acm.addFieldValue( new ActionFieldFunction( "f2", "true", DataType.TYPE_BOOLEAN ) ); acm.addFieldValue( new ActionFieldFunction( "f3", "31-Jan-2012", DataType.TYPE_DATE ) ); acm.addFieldValue( new ActionFieldFunction( "f4", "100", DataType.TYPE_NUMERIC_INTEGER ) ); acm.addFieldValue( new ActionFieldFunction( "f5", "100", DataType.TYPE_NUMERIC_BIGDECIMAL ) );