
org.eclipse.ui.internal.WWinActionBars Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.eclipse.ui.workbench Show documentation
Show all versions of org.eclipse.ui.workbench Show documentation
This is org.eclipse.ui.workbench jar used by Scout SDK
/*******************************************************************************
* Copyright (c) 2000, 2006 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.ui.internal;
import org.eclipse.core.runtime.Assert;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.action.ICoolBarManager;
import org.eclipse.jface.action.IMenuManager;
import org.eclipse.jface.action.IStatusLineManager;
import org.eclipse.jface.action.IToolBarManager;
import org.eclipse.ui.IActionBars2;
import org.eclipse.ui.services.IServiceLocator;
public class WWinActionBars implements IActionBars2 {
private WorkbenchWindow window;
/**
* PerspActionBars constructor comment.
*/
public WWinActionBars(WorkbenchWindow window) {
super();
this.window = window;
}
/**
* Clears the global action handler list.
*/
@Override
public void clearGlobalActionHandlers() {
}
/**
* Returns the cool bar manager.
*
*/
@Override
public ICoolBarManager getCoolBarManager() {
return window.getCoolBarManager2();
}
/**
* Get the handler for a window action.
*
* @param actionID an action ID declared in the registry
* @return an action handler which implements the action ID, or
* null
if none is registered.
*/
@Override
public IAction getGlobalActionHandler(String actionID) {
return null;
}
/**
* Returns the menu manager. If items are added or
* removed from the manager be sure to call updateActionBars
.
*
* @return the menu manager
*/
@Override
public IMenuManager getMenuManager() {
return window.getMenuManager();
}
@Override
public final IServiceLocator getServiceLocator() {
return window;
}
/**
* Returns the status line manager. If items are added or
* removed from the manager be sure to call updateActionBars
.
*
* @return the status line manager
*/
@Override
public IStatusLineManager getStatusLineManager() {
return window.getStatusLineManager();
}
/**
* Returns the tool bar manager.
*
*/
@Override
public IToolBarManager getToolBarManager() {
// This should never be called
Assert.isTrue(false);
return null;
}
/**
* Add a handler for a window action.
*
* The standard action ID's for the workbench are defined in
* IWorkbenchActions
.
*
* @see IWorkbenchActions
*
* @param actionID an action ID declared in the registry
* @param handler an action which implements the action ID.
* null
may be passed to deregister a handler.
*/
@Override
public void setGlobalActionHandler(String actionID, IAction handler) {
}
/**
* Commits all UI changes. This should be called
* after additions or subtractions have been made to a
* menu, status line, or toolbar.
*/
@Override
public void updateActionBars() {
window.updateActionBars();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy