Group group = new Group( (Composite) super.getControl( ), SWT.NONE ); group.setText( Messages .getString( "NewReportProjectWizard.projectSetting" ) ); GridLayout layout = new GridLayout( ); layout.numColumns = 2; group.setLayout( layout ); group.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );  Button javaButton = createButton( group ); javaButton.setText( Messages .getString( "NewReportProjectWizard.javaProject" ) ); javaButton.addSelectionListener( new SelectionAdapter( ) {  public void widgetSelected( SelectionEvent e ) { isJavaProject = !isJavaProject; sourceText.setEnabled( isJavaProject ); outputText.setEnabled( isJavaProject ); } } );  createLabel( group, Messages .getString( "NewReportProjectWizard.src" ) ); sourceText = createText( group );  IPreferenceStore store = PreferenceConstants .getPreferenceStore( ); sourceText.setText( store .getString( PreferenceConstants.SRCBIN_SRCNAME ) ); sourceText.setEnabled( isJavaProject );  createLabel( group, Messages .getString( "NewReportProjectWizard.bin" ) ); outputText = createText( group ); outputText.setText( store .getString( PreferenceConstants.SRCBIN_BINNAME ) ); outputText.setEnabled( isJavaProject );
	public void addPages( )	{		super.addPages( );		mainPage = new WizardNewProjectCreationPage( "basicNewProjectPage" )		{			public void createControl( Composite parent )			{				super.createControl( parent );				Group group = new Group( (Composite) super.getControl( ),						SWT.NONE );				group.setText( Messages						.getString( "NewReportProjectWizard.projectSetting" ) ); //$NON-NLS-1$				GridLayout layout = new GridLayout( );				layout.numColumns = 2;				group.setLayout( layout );				group.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );				Button javaButton = createButton( group );				javaButton.setText( Messages						.getString( "NewReportProjectWizard.javaProject" ) );				javaButton.addSelectionListener( new SelectionAdapter( )				{					public void widgetSelected( SelectionEvent e )					{						isJavaProject = !isJavaProject;						sourceText.setEnabled( isJavaProject );						outputText.setEnabled( isJavaProject );					}				} );				createLabel( group, Messages						.getString( "NewReportProjectWizard.src" ) ); //$NON-NLS-1$				sourceText = createText( group );				IPreferenceStore store = PreferenceConstants						.getPreferenceStore( );				sourceText.setText( store						.getString( PreferenceConstants.SRCBIN_SRCNAME ) );				sourceText.setEnabled( isJavaProject );				createLabel( group, Messages						.getString( "NewReportProjectWizard.bin" ) ); //$NON-NLS-1$				outputText = createText( group );				outputText.setText( store						.getString( PreferenceConstants.SRCBIN_BINNAME ) );				outputText.setEnabled( isJavaProject );			}			/*			 * (non-Javadoc)			 * 			 * @see org.eclipse.jface.wizard.WizardPage#isPageComplete()			 */			public boolean isPageComplete( )			{				return validatePage( ) || super.isPageComplete( );			}		};//$NON-NLS-1$		mainPage				.setTitle( Messages.getString( "NewReportProjectWizard.title" ) ); //$NON-NLS-1$		mainPage.setDescription( Messages				.getString( "NewReportProjectWizard.description" ) ); //$NON-NLS-1$		this.addPage( mainPage );	}