IEditorPart editorPart = IDE.openEditor( page, file, true ); ModuleHandle model = SessionHandleAdapter.getInstance( ) .getReportDesignHandle( ); if ( ReportPlugin.getDefault( ) .getEnableCommentPreference( ) ) { model.setStringProperty( ModuleHandle.COMMENTS_PROP, ReportPlugin.getDefault( ) .getCommentPreference( ) ); model.save( ); editorPart.doSave( null ); }
IDE.openEditor( page, file, true );
			public void run( )			{				IWorkbench workbench = PlatformUI.getWorkbench( );				IWorkbenchWindow window = workbench.getActiveWorkbenchWindow( );				IWorkbenchPage page = window.getActivePage( );				try				{					IEditorPart editorPart = IDE.openEditor( page, file, true );					ModuleHandle model = SessionHandleAdapter.getInstance( )							.getReportDesignHandle( );					if ( ReportPlugin.getDefault( )							.getEnableCommentPreference( ) )					{						model.setStringProperty( ModuleHandle.COMMENTS_PROP,								ReportPlugin.getDefault( )										.getCommentPreference( ) );						model.save( );						editorPart.doSave( null );					}					// setReportSettings( ( (IDEReportEditor) editorPart					// ).getModel( ) );					// editorPart.doSave( null );					BasicNewProjectResourceWizard.updatePerspective( configElement );					if ( showCheat && !cheatId.equals( "" ) ) //$NON-NLS-1$					{						OpenCheatSheetAction action = null;						// Temporary remark the choice page for that feature is						// not supported in R1						// if ( choicePage.isCustom( ) )						// {						// action = new OpenCheatSheetAction( file.getName( ),						// file.getName( ),						// new URL( cheatId ) ); //$NON-NLS-1$						// }						// else						// {						action = new OpenCheatSheetAction( cheatId );						// }						action.run( );					}				}				catch ( Exception e )				{					ExceptionHandler.handle( e );				}			}