Bug 131243 Open invalid report design.
Open a invalid report design should switch to XML Source editor page and can't switch to other pages, when the source is correct user can switch to layout and other pages.
UI/org.eclipse.birt.report.designer.ui.editors.schematic/src/org/eclipse/birt/report/designer/ui/editors/pages/ReportXMLSourceEditorFormPage.java
Messages.getString( "XMLSourcePage.Error.Dialog.Message.Cancel" )}, 0 );
			int ret = prefDialog.open( );
			switch ( ret )
			{
				case 0 :
					doSave( null );
					break;
				case 1 :
					if ( getEditorInput( ) != null )
					{
						this.setInput( getEditorInput( ) );
					}
					break;
				case 2 :
					return false;
			}
		}
		boolean validModel = false;
		validModel = isValidModelFile( );
		if ( !validModel )
		{
			Display.getCurrent( ).beep( );
			MessageDialog.openError( Display.getCurrent( ).getActiveShell( ),
					Messages.getString( "XMLSourcePage.Error.Dialog.title" ), 
					Messages.getString( "XMLSourcePage.Error.Dialog.Message.InvalidFile" ) ); 
			return false;
		}
		return true;
	}
	/*