/**
* Activates the action handlers.
*/
public void activateGlobalActionHandlers()
{
ICommandService commandService = ( ICommandService ) PlatformUI.getWorkbench().getAdapter(
ICommandService.class );
if ( actionBars != null )
{
actionBars.setGlobalActionHandler( ActionFactory.REFRESH.getId(), ( IAction ) browserActionMap
.get( refreshAction ) );
actionBars.setGlobalActionHandler( ActionFactory.PROPERTIES.getId(), ( IAction ) browserActionMap
.get( propertyDialogAction ) );
actionBars.updateActionBars();
}
else
{
if ( commandService != null )
{
IAction pda = ( IAction ) browserActionMap.get( propertyDialogAction );
pda.setActionDefinitionId( "org.apache.directory.ldapstudio.browser.action.properties" );
commandService.getCommand( pda.getActionDefinitionId() ).setHandler( new ActionHandler( pda ) );
IAction ra = ( IAction ) browserActionMap.get( refreshAction );
commandService.getCommand( ra.getActionDefinitionId() ).setHandler( new ActionHandler( ra ) );
}
}
if ( commandService != null )
{
IAction ua = ( IAction ) browserActionMap.get( upAction );
commandService.getCommand( ua.getActionDefinitionId() ).setHandler( new ActionHandler( ua ) );
}
}