Label title = new Label( inputArea, SWT.NONE ); title.setText( Messages.getString( "ImageDialog.label.EnterURL" ) );
title = new Label( inputArea, SWT.NONE ); title.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
	private void createInputArea( Composite parent )	{		inputArea = new Composite( parent, SWT.NONE );		GridData gd = new GridData( GridData.FILL_BOTH				| GridData.HORIZONTAL_ALIGN_BEGINNING );		gd.widthHint = 300;		gd.heightHint = 300;		inputArea.setLayoutData( gd );		inputArea.setLayout( new GridLayout( ) );		Label title = new Label( inputArea, SWT.NONE );		title.setText( Messages.getString( "ImageDialog.label.EnterURL" ) ); //$NON-NLS-1$		uriEditor = new Text( inputArea, SWT.SINGLE | SWT.BORDER );		uriEditor.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );		uriEditor.addModifyListener( new ModifyListener( ) {			public void modifyText( ModifyEvent e )			{				updateButtons( );			}		} );		Composite innerComp = new Composite( inputArea, SWT.NONE );		innerComp.setLayoutData( new GridData( GridData.HORIZONTAL_ALIGN_END ) );		innerComp.setLayout( new GridLayout( 2, false ) );		Button inputButton = new Button( innerComp, SWT.PUSH );		inputButton.setText( Messages.getString( "ImageDialog.label.Browse" ) ); //$NON-NLS-1$		inputButton.setLayoutData( new GridData( GridData.HORIZONTAL_ALIGN_END ) );		inputButton.addSelectionListener( new SelectionAdapter( ) {			public void widgetSelected( SelectionEvent event )			{				FileDialog fileChooser = new FileDialog( getShell( ), SWT.OPEN );				fileChooser.setText( Messages.getString( "ImageDialog.label.SelectFile" ) ); //$NON-NLS-1$				fileChooser.setFilterExtensions( new String[]{						"*.gif", "*.jpg", "*.png" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$				} );				try				{					String fullPath = fileChooser.open( );					if ( fullPath != null )					{						String fileName = fileChooser.getFileName( );						if ( fileName != null )						{							imageData = null;							fullPath = new StringBuffer( "file:///" ).append( fullPath ).toString( ); //$NON-NLS-1$							preview( fullPath );							uriEditor.setText( fullPath );						}					}				}				catch ( Throwable e )				{					e.printStackTrace( );				}			}		} );		previewButton = new Button( innerComp, SWT.PUSH );		previewButton.setText( Messages.getString( "ImageDialog.label.Preview" ) ); //$NON-NLS-1$		previewButton.setLayoutData( new GridData( GridData.HORIZONTAL_ALIGN_END ) );		previewButton.addSelectionListener( new SelectionAdapter( ) {			public void widgetSelected( SelectionEvent e )			{				preview( uriEditor.getText( ) );			}		} );	}