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 ct;
	}
	String getUniqueReportName( String prefix, String ext )
	{
		int counter = getCounter( prefix, ext );
		return counter == 0 ? prefix + ext 
		: prefix + "_" 
				+ counter + ext; 
	}
	int getCounter( String prefix, String ext )
	{
		IProject[] pjs = ResourcesPlugin.getWorkspace( )
				.getRoot( )
				.getProjects( );
		resetUniqueCount( );
		boolean goon = true;
		while ( goon )
		{
			goon = false;
			for ( int i = 0; i < pjs.length; i++ )
			{
				if ( pjs[i].isAccessible( ) )
				{
					if ( !validDuplicate( prefix, ext, UNIQUE_COUNTER, pjs[i] ) )
					{
						UNIQUE_COUNTER++;
						goon = true;
						break;
					}
				}