Bug 138556 New a report, system switch the XML page
New a report, system switch the XML page Steps: 1.Create a new report design file Actual Results: 1.System will switch the XML page Expected Results: 1.System will switch the layout page
UI/org.eclipse.birt.report.designer.ui.ide/src/org/eclipse/birt/report/designer/ui/ide/wizards/NewTemplateWizard.java
}
			stream.close( );
			if(ReportPlugin.getDefault( ).getEnableCommentPreference( )){
			    fileName = file.getLocation( ).toOSString( );
			    InputStream is = new FileInputStream(fileName);
			    ModuleHandle model = SessionHandleAdapter.getInstance( ).init( fileName,is );
			    model.setStringProperty( ModuleHandle.COMMENTS_PROP, ReportPlugin.getDefault( ).getCommentPreference( ) );
			    model.save();
			    is.close( );
			}
		}
		catch ( Exception 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
				{
					IEditorPart editorPart = IDE.openEditor( page, file, true );
					setReportSettings( SessionHandleAdapter.getInstance( ).getReportDesignHandle( ) );
					editorPart.doSave( null );
					BasicNewProjectResourceWizard
							.updatePerspective( getConfigElement( ) );
				}