fileName = dialog.open( ).trim( ); if ( fileName == null || fileName.length( ) == 0 )
fileName = dialog.open( ); if ( fileName == null || fileName.trim().length( ) == 0 )
		public void handleEvent( Event event )		{			String fileName = null;			FileDialog dialog = new FileDialog( getShell( ), SWT.OPEN );			dialog.setText( Messages.getString( "ThumbnailBuilder.FileDialog.Title" ) ); //$NON-NLS-1$			dialog.setFilterExtensions( IMAGE_FILTER );			fileName = dialog.open( ).trim( );			if ( fileName == null || fileName.length( ) == 0 )			{				return;			}			if ( checkExtensions( fileName ) == false )			{				ExceptionHandler.openErrorMessageBox( Messages.getString( "ThumbnailBuilder.FileDialog.FileNameError.Title" ),						Messages.getString( "ThumbnailBuilder.FileDialog.FileNameError.Message" ) );				return;			}			removeImage( );			isGenerated = false;			hasThumbnail = true;			image = new Image( null, fileName );			previewThumbnail.setVisible( false );			previewCanvas.setVisible( true );			previewCanvas.loadImage( image );			// previewCanvas.showOriginal( );			btnRemove.setEnabled( true );		}