setReportSettings( SessionHandleAdapter.getInstance( ) .getReportDesignHandle( ) );
ModuleHandle model = SessionHandleAdapter.getInstance( ).getReportDesignHandle( ); if(ReportPlugin.getDefault( ).getEnableCommentPreference( )){ model.setStringProperty( ModuleHandle.COMMENTS_PROP, ReportPlugin.getDefault( ).getCommentPreference( ) ); }  setReportSettings(model);
			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 );					setReportSettings( SessionHandleAdapter.getInstance( )							.getReportDesignHandle( ) );					editorPart.doSave( null );				}				catch ( Exception e )				{					ExceptionHandler.handle( e );				}			}