model.save( );
	private void doFinish( IPath locationPath, String fileName,			InputStream stream, IProgressMonitor monitor )	{		// create a sample file		monitor.beginTask( CREATING + fileName, 2 );		final File file = new File( locationPath.toString( ), fileName );		try		{			File container = new File( locationPath.toString( ) );			if ( !container.exists( ) )			{				container.mkdirs( );			}			FileOutputStream out = new FileOutputStream( file );			byte[] buff = new byte[stream.available( )];			stream.read( buff );			out.write( buff );			out.close( );			stream.close( );		}		catch ( Exception e )		{			ExceptionHandler.handle( e );		}		monitor.worked( 1 );		monitor.setTaskName( OPENING_FILE_FOR_EDITING );		getShell( ).getDisplay( ).asyncExec( new Runnable( ) {			public void run( )			{				IWorkbench workbench = PlatformUI.getWorkbench( );				IWorkbenchWindow window = workbench.getActiveWorkbenchWindow( );				IWorkbenchPage page = window.getActivePage( );				try				{					// sanity checks					if ( page == null )					{						throw new IllegalArgumentException( );					}					// open the editor on the file					IEditorPart editorPart = page.openEditor( new ReportEditorInput( file ),							IReportEditorContants.TEMPLATE_EDITOR_ID,							true );					ModuleHandle model = SessionHandleAdapter.getInstance( ).getReportDesignHandle( );					if(ReportPlugin.getDefault( ).getEnableCommentPreference( )){					    model.setStringProperty( ModuleHandle.COMMENTS_PROP, ReportPlugin.getDefault( ).getCommentPreference( ) );					}					    					setReportSettings(model);					editorPart.doSave( null );				}				catch ( Exception e )				{					ExceptionHandler.handle( e );				}			}		} );		monitor.worked( 1 );	} /*