Bug 130495 Get rid of SessionHandleAdapter
Now, we use SessionHandleAdapter to keep current active report deisng. That's a bad practive for editor swith and rebuild will cuase lots of problmes. Need find way to replace it.
UI/org.eclipse.birt.report.designer.ui.editors.schematic/src/org/eclipse/birt/report/designer/ui/editors/pages/ReportXMLSourceEditorFormPage.java
}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.ui.forms.editor.IFormPage#canLeaveThePage()
	 */
	public boolean canLeaveThePage( )
	{
		if ( isDirty( ) )
		{
			MessageDialog prefDialog = new MessageDialog( UIUtil.getDefaultShell( ),
					Messages.getString( "XMLSourcePage.Error.Dialog.title" ),
					null,
					Messages.getString( "XMLSourcePage.Error.Dialog.Message.PromptMsg" ),
					MessageDialog.INFORMATION,
					new String[]{
							Messages.getString( "XMLSourcePage.Error.Dialog.Message.Yes" ),
							Messages.getString( "XMLSourcePage.Error.Dialog.Message.No" ),
							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( ) );
					}