Bug 162165 Cancel saving the report XML source changes works incorrectly
Description: Modify report in XML source editor, and then active the preview editor, choose not to saving the XML source changes or choose cancel doesn't work correctly. It works correctly when active layout editor after changing XML source. Steps to reproduce: 1.Active XML source editor of a report. 2.Modify the XML source, but doesn't save it. 3.Active the preview editor, a dialog pops up and shows warning message about the XML source changes. 4.Choose "no" or "cancel" on the pop up dialog. Actual result: Save the XML source changes and active the preview editor and preview the report with the changes. Expect result: Doesn't save the XML source changes and stay in XML editor instead of active the preview editor.
UI/org.eclipse.birt.report.designer.ui.editors.schematic/src/org/eclipse/birt/report/designer/ui/editors/pages/ReportXMLSourceEditorFormPage.java
registry = new ActionRegistry( );
			}
			return registry;
		}
		return super.getAdapter( required );
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.birt.report.designer.internal.ui.editors.schematic.xml.XMLEditor#getProvider()
	 */
	protected IReportProvider getProvider( )
	{
		IReportProvider provider = (IReportProvider) editor.getAdapter( IReportProvider.class );
		if ( provider == null )
		{
			provider = super.getProvider( );
		}
		return provider;
	}
	protected void finalize( ) throws Throwable
	{
		if ( Policy.TRACING_PAGE_CLOSE )
		{
			System.out.println( "Report source page finalized" ); 
		}
		super.finalize( );
	}
}