UIUtil.bindHelp( parent,IHelpContextIds.PREFERENCE_BIRT_DATA_SET_EDITOR_ID );
	protected Control createContents( Composite parent )	{		Composite mainComposite = new Composite( parent, SWT.NONE );		GridData data = new GridData( GridData.FILL_HORIZONTAL);		data.horizontalSpan = 2;		data.verticalSpan = 5;		//mainComposite.setLayoutData( data );		GridLayout layout = new GridLayout();		mainComposite.setLayout( layout );		Group previewPageGroup = new Group( mainComposite, SWT.NONE );		previewPageGroup.setLayout( new GridLayout() );				previewPageGroup.setText( Messages.getString( "designer.preview.preference.resultset.previewpage.group.title" ) );		previewPageGroup.setLayoutData( data );		previewPageGroup.setEnabled( true );						//Set up the maximum number of rows to be previewed in ResultSetPreviewPage.				maxRowEditor = new IntegerFieldEditor( USER_MAXROW, "", previewPageGroup ); 		Label lab2 = maxRowEditor.getLabelControl( previewPageGroup );        lab2.setText(Messages.getString( "designer.preview.preference.resultset.maxrow.description" ));				maxRowEditor.setPage(this);		maxRowEditor.setTextLimit( Integer.toString( MAX_MAX_ROW ).length( ) );		maxRowEditor.setErrorMessage( Messages.getFormattedString( "designer.preview.preference.resultset.maxrow.errormessage",				new Object[]{new Integer( MAX_MAX_ROW )	} ) );        maxRowEditor.setValidateStrategy( StringFieldEditor.VALIDATE_ON_KEY_STROKE );        maxRowEditor.setValidRange(1, MAX_MAX_ROW);        maxRowEditor.setPropertyChangeListener(new IPropertyChangeListener() {            public void propertyChange(PropertyChangeEvent event) {                if (event.getProperty().equals(FieldEditor.IS_VALID))                        setValid(maxRowEditor.isValid());            }        });        		String defaultMaxRow = ReportPlugin.getDefault( )				.getPluginPreferences( )				.getString( USER_MAXROW );		if ( defaultMaxRow == null || defaultMaxRow.trim( ).length( ) <= 0 )		{			defaultMaxRow = String.valueOf( DEFAULT_MAX_ROW );		}		maxRowEditor.setStringValue( defaultMaxRow );		return mainComposite;	}