blob: eb3bfd018ab5ba1ed29fcddd50e667d5fc3fa86b [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2003 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.ui.application;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.action.IMenuManager;
import org.eclipse.jface.action.IStatusLineManager;
import org.eclipse.jface.action.ICoolBarManager;
/**
* Interface providing special access for configuring the action bars
* of a workbench window.
* <p>
* Note that these objects are only available to the main application
* (the plug-in that creates and owns the workbench).
* </p>
* <p>
* This interface is not intended to be implemented by clients.
* </p>
*
* @see org.eclipse.ui.application.WorkbenchAdvisor#fillActionBars
* @since 3.0
*/
public interface IActionBarConfigurer {
/**
* Returns the menu manager for the main menu bar of a workbench window.
*
* @return the menu manager
*/
public IMenuManager getMenuManager();
/**
* Returns the status line manager of a workbench window.
*
* @return the status line manager
*/
public IStatusLineManager getStatusLineManager();
/**
* Returns the cool bar manager of the workbench window.
*
* @return the cool bar manager
*/
public ICoolBarManager getCoolBarManager();
/**
* Register the action as a global action with a workbench
* window.
* <p>
* For a workbench retarget action
* ({@link org.eclipse.ui.actions.RetargetAction RetargetAction})
* to work, it must be registered.
* You should also register actions that will participate
* in custom key bindings.
* </p>
*
* @param action the global action
* @see org.eclipse.ui.actions.RetargetAction
*/
public void registerGlobalAction(IAction action);
}