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/internal/ui/ide/adapters/NewLibraryWizardAdapterFactory.java
UIUtil.createFolder( folder, monitor );
			container = folder;
		}
		else
		{
			container = (IContainer) resource;
		}
		final IFile file = container.getFile( new Path( fileName ) );
		try
		{
			if ( file.exists( ) )
			{
				file.setContents( stream, true, true, monitor );
			}
			else
			{
				file.create( stream, true, monitor );
			}
			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 )