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
import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.Platform;
import org.eclipse.jface.operation.IRunnableWithProgress;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.ide.IDE;
import org.eclipse.ui.wizards.newresource.BasicNewProjectResourceWizard;
public class NewTemplateWizard extends NewReportWizard
{
	private static final String WIZARDPAGE = Messages
			.getString( "NewTemplateWizard.title.WizardPage" ); 
	private static final String OPENING_FILE_FOR_EDITING = Messages
			.getString( "NewTemplateWizard.text.OpenFileForEditing" ); 
	private static final String CREATING = Messages
			.getString( "NewTemplateWizard.text.Creating" ); 
	private static final String NEW_TEMPLATE_FILE_NAME_PREFIX = Messages
			.getString( "NewTemplateWizard.displayName.NewReportFileNamePrefix" ); 
	private static final String NEW_TEMPLATE_DESCRIPTION = Messages
			.getString( "NewTemplateWizard.pageDescription.createNewTemplate" ); 
	private static final String NEW_TEMPLATE_TITLE = Messages
			.getString( "NewTemplateWizard.title.Template" );