ModuleHandle model = SessionHandleAdapter.getInstance( ).getReportDesignHandle( ); if ( model != null && getModel() != model) {
ModuleHandle model = getProvider( ).getReportModuleHandle( getEditorInput( ) ); if ( model != null && getModel( ) != model ) {
	public boolean onBroughtToTop( IReportEditorPage prePage )	{		if ( getEditorInput( ) != prePage.getEditorInput( ) )		{			setInput( prePage.getEditorInput( ) );		}				ModuleHandle model = SessionHandleAdapter.getInstance( ).getReportDesignHandle( );		if ( model != null && getModel() != model)		{					Object oldModel = getModel( );							setModel( model );			rebuildReportDesign( oldModel );			if ( getModel( ) != null )			{				setViewContentsAsMasterPage();				markPageStale( IPageStaleType.NONE );			}			updateStackActions( );					}					return true;			}