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.rcp/src/org/eclipse/birt/report/designer/ui/internal/rcp/wizards/NewReportWizard.java
* @param locationPath
	 * @param fileName
	 * @param showCheatSheet
	 * @param monitor
	 */
	private void doFinish( IPath locationPath, String fileName,
			InputStream stream, final String cheatSheetId,
			final boolean showCheatSheet, IProgressMonitor monitor )
	{
		
		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( );
			
			if(ReportPlugin.getDefault( ).getEnableCommentPreference( )){
			    InputStream is = new FileInputStream(file);
			    ModuleHandle model = SessionHandleAdapter.getInstance( ).init( file.getAbsolutePath( ),is );
			    model.setStringProperty( ModuleHandle.COMMENTS_PROP, ReportPlugin.getDefault( ).getCommentPreference( ) );