IEditorPart editorPart = page.openEditor( new ReportEditorInput( file ),
page.openEditor( new ReportEditorInput( file ),
			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.DESIGN_EDITOR_ID,							true );					ModuleHandle model = SessionHandleAdapter.getInstance( ).getReportDesignHandle( );					if(ReportPlugin.getDefault( ).getEnableCommentPreference( )){					    model.setStringProperty( ModuleHandle.COMMENTS_PROP, ReportPlugin.getDefault( ).getCommentPreference( ) );					    model.save( );					    editorPart.doSave( null );					}//					setReportSettings( ( (RCPReportEditor) editorPart ).getModel( ) );//					editorPart.doSave( null );					if ( showCheatSheet && !cheatSheetId.equals( "" ) ) //$NON-NLS-1$					{						OpenCheatSheetAction action = new OpenCheatSheetAction( cheatSheetId );						action.run( );					}				}				catch ( Exception e )				{					ExceptionHandler.handle( e );				}			}