subBarMap.put( page.getId( ), currentActionBarDef );
	public void setActivePage( IFormPage page )	{		if ( page == null )		{			return;		}		if ( subBarMap == null )		{			subBarMap = new HashMap( );		}		if ( currentActionBarDef != null )		{			currentActionBarDef.deactivate( );		}		IActionBars rootBar = getActionBars( );		if ( page != null )		{			currentActionBarDef = (SubActionBarDef) subBarMap.get( page.getId( ) );			if ( currentActionBarDef == null )			{				FormEditor editor = page.getEditor( );				if ( editor != null )				{					EditorContributor contributor = EditorContributorManager.getInstance( )							.getEditorContributor( editor.getSite( ).getId( ) );					if ( contributor != null )					{						FormPageDef pageDef = contributor.getPage( page.getId( ) );						if ( pageDef != null								&& pageDef.actionBarContributor != null )						{							currentActionBarDef = new SubActionBarDef( rootBar,									pageDef.actionBarContributor );							currentActionBarDef.init( getPage( ) );							subBarMap.put( page.getId( ), currentActionBarDef );						}					}				}			}		}		rootBar.clearGlobalActionHandlers( );		if ( currentActionBarDef != null )		{			currentActionBarDef.setActiveEditor( page );			Map handlers = currentActionBarDef.getSubActionBar( )					.getGlobalActionHandlers( );			if ( handlers != null )			{				Set keys = handlers.keySet( );				for ( Iterator iter = keys.iterator( ); iter.hasNext( ); )				{					String id = (String) iter.next( );					rootBar.setGlobalActionHandler( id,							(IAction) handlers.get( id ) );				}			}			currentActionBarDef.activate( );			currentActionBarDef.updateActionBars( );		}		rootBar.updateActionBars( );	}