private Control createPageControl( Composite parent )
    {
        Composite composite = new Composite( parent, SWT.NONE );
        composite.setLayout( new GridLayout( 1, false ) );
        GridData gridData = new GridData( GridData.HORIZONTAL_ALIGN_FILL
                | GridData.VERTICAL_ALIGN_FILL );

        composite.setLayoutData( gridData );

        Label fieldLabel = new Label( composite, SWT.NONE );
        fieldLabel.setText( "&Query Text:" );
        
        m_queryTextField = new Text( composite, SWT.BORDER
                | SWT.V_SCROLL | SWT.H_SCROLL );
        GridData data = new GridData( GridData.FILL_HORIZONTAL );
        data.heightHint = 100;
        m_queryTextField.setLayoutData( data );
        m_queryTextField.addModifyListener( new ModifyListener( ) 
        {
            public void modifyText( ModifyEvent e )
            {
                validateData();
            }
        } );
       
        setPageComplete( false );
        return composite;
    }
private Control createPageControl ( Composite parent ) { Composite composite = new Composite ( parent , SWT . NONE ) ; composite . setLayout ( new GridLayout ( 1 , false ) ) ; GridData gridData = new GridData ( GridData . HORIZONTAL_ALIGN_FILL | GridData . VERTICAL_ALIGN_FILL ) ; composite . setLayoutData ( gridData ) ; Label fieldLabel = new Label ( composite , SWT . NONE ) ; fieldLabel . setText ( "&Query Text:" ) ; m_queryTextField = new Text ( composite , SWT . BORDER | SWT . V_SCROLL | SWT . H_SCROLL ) ; GridData data = new GridData ( GridData . FILL_HORIZONTAL ) ; data . heightHint = 100 ; m_queryTextField . setLayoutData ( data ) ; m_queryTextField . addModifyListener ( new ModifyListener ( ) { public void modifyText ( ModifyEvent e ) { validateData ( ) ; } } ) ; setPageComplete ( false ) ; return composite ; }
Creates custom control for user-defined query text.