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/NewReportWizard.java
}
		}
		return UNIQUE_COUNTER;
	}
	private static final List tmpList = new ArrayList( );
	private IConfigurationElement configElement;
	boolean validDuplicate( String prefix, String ext, int count, IResource res )
	{
		if ( res != null && res.isAccessible( ) )
		{
			final String name;
			if ( count == 0 )
			{
				name = prefix + ext;
			}
			else
			{
				name = prefix + "_" + count + ext; 
			}
			try
			{
				tmpList.clear( );
				res.accept( new IResourceVisitor( ) {
					public boolean visit( IResource resource )
							throws CoreException
					{
						if ( resource.getType( ) == IResource.FILE
								&& name.equals( ( (IFile) resource ).getName( ) ) )
						{
							tmpList.add( Boolean.TRUE );