catch ( Throwable e ) { preview( ); if ( e instanceof OutOfMemoryError ) { e = GUIException.createGUIException( ReportPlugin.REPORT_UI, e ); } ExceptionHandler.handle( e, DLG_TITLE_LOADING_FAIL, DLG_ERROR_MSG_LOADING_FAIL );  } }
			public void widgetSelected( SelectionEvent event )			{				FileDialog fileChooser = new FileDialog( getShell( ), SWT.OPEN );				fileChooser.setText( Messages.getString( "ImageBuilder.Chooser.Title" ) ); //$NON-NLS-1$				fileChooser.setFilterExtensions( new String[]{					"*.gif;*.jpg;*.png;*.ico;*.bmp" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$				} );				try				{					String fullPath = fileChooser.open( );					if ( fullPath != null )					{						String fileName = fileChooser.getFileName( );						if ( fileName != null )						{							if ( embeddedImageList.indexOf( fileName ) != -1 )							{								ExceptionHandler.openMessageBox( DLG_TITLE_IMPORT_FAIL,										DLG_ERROR_MSG_FILE_EXISTS,										SWT.ICON_WARNING );								return;							}							previewCanvas.loadImage( fullPath );							BirtImageLoader imageLoader = new BirtImageLoader( );							EmbeddedImage image = imageLoader.save( getModuleHandle( ),									fullPath,									fileName );							embeddedImageList.add( image.getName( ) );							embeddedImageList.select( embeddedImageList.indexOf( image.getName( ) ) );							updateButtons( );						}					}				}				catch ( Throwable e )				{					preview( );					if ( e instanceof OutOfMemoryError )					{						e = GUIException.createGUIException( ReportPlugin.REPORT_UI,								e );					}					ExceptionHandler.handle( e,							DLG_TITLE_LOADING_FAIL,							DLG_ERROR_MSG_LOADING_FAIL );				}			}