dialog.setInput( ReportPlugin.getDefault( ) .getResourcePreference( ) );
	public void createControl( Composite parent )	{		if ( type == PublishLibraryWizard.HAVE_NO_HANDLE )		{			UIUtil.bindHelp( parent, IHelpContextIds.ADD_LIBRARY_DIALOG_ID );		}		else		{			UIUtil.bindHelp( parent, IHelpContextIds.PUBLISH_LIBRARY_WIZARD_ID );		}		Composite container = new Composite( parent, SWT.NONE );		GridData gd = new GridData( GridData.FILL_HORIZONTAL );		gd.widthHint = 250;		gd.heightHint = 350;		container.setLayoutData( gd );		GridLayout gridLayout = new GridLayout( );		gridLayout.numColumns = 3;		container.setLayout( gridLayout );		if ( type == PublishLibraryWizard.HAVE_NO_HANDLE )		{			new Label( container, SWT.NONE ).setText( LABEL_SOURCE_FILE_NAME );			int style = SWT.BORDER | SWT.SINGLE;			sourceFileText = createText( container, 1, style );			sourceFileText.addModifyListener( new ModifyListener( ) {				public void modifyText( ModifyEvent e )				{					checkStatus( type );				}			} );			Button chooseBtn = new Button( container, SWT.NONE );			chooseBtn.setText( BUTTON_BROWSE2 );			chooseBtn.addSelectionListener( new SelectionListener( ) {				public void widgetSelected( SelectionEvent e )				{					String sourceFileName = getFilePath( );					if ( sourceFileName != null )					{						sourceFileText.setText( sourceFileName );						nameText.setText( sourceFileName.substring( sourceFileName.lastIndexOf( File.separator ) + 1 ) );						nameText.setFocus( );					}				}				public void widgetDefaultSelected( SelectionEvent e )				{				}			} );		}		new Label( container, SWT.NONE ).setText( LABEL_FILE_NAME );		int style = SWT.BORDER | SWT.SINGLE;		nameText = createText( container, 1, style );		new Label( container, SWT.NONE );		if ( fileName != null )		{			nameText.setText( fileName );		}		nameText.addModifyListener( new ModifyListener( ) {			public void modifyText( ModifyEvent e )			{				checkStatus( type );			}		} );		new Label( container, SWT.NONE ).setText( LABEL_FOLDER );		style = SWT.BORDER | SWT.SINGLE | SWT.READ_ONLY;		folderText = createText( container, 1, style );		if ( folder != null )		{			folderText.setText( folder );		}		folderText.addModifyListener( new ModifyListener( ) {			public void modifyText( ModifyEvent e )			{				checkStatus( type );			}		} );		Button chooseBtn = new Button( container, SWT.NONE );		chooseBtn.setText( BUTTON_BROWSE );		chooseBtn.addSelectionListener( new SelectionListener( ) {			public void widgetSelected( SelectionEvent e )			{				ResourceFileLabelProvider labelProvider = new ResourceFileLabelProvider( );				ResourceFileContentProvider contentProvider = new ResourceFileContentProvider( false );				ResourceFileFolderSelectionDialog dialog = new ResourceFileFolderSelectionDialog( UIUtil.getDefaultShell( ),						labelProvider,						contentProvider );				dialog.setAllowMultiple( false );				dialog.setTitle( Messages.getString( "WizardLibrarySettingPage.Resourcefile.Dialog.Title" ) ); //$NON-NLS-1$				dialog.setMessage( Messages.getString( "WizardLibrarySettingPage.Resourcefile.Dialog.Message" ) ); //$NON-NLS-1$				dialog.setValidator( new Validator( ) );				dialog.setInput( ReportPlugin.getDefault( )						.getResourcePreference( ) );				if ( dialog.open( ) == dialog.OK )				{					Object[] selected = dialog.getResult( );					if ( selected.length > 0 )					{						File file = (File) selected[0];						folderText.setText( file.getPath( ) );					}				}			}			public void widgetDefaultSelected( SelectionEvent e )			{			}		} );		nameText.forceFocus( );		setControl( container );	}