public class SubActionBars2 extends SubActionBars implements IActionBars2
IActionBars2 interface. This
sub class provides a sub cool bar manager for plugins to contribute multiple
cool items.P_ACTION_HANDLERS| Constructor and Description |
|---|
SubActionBars2(IActionBars2 parent)
Constucts a sub action bars object using an IActionBars2 parent.
|
SubActionBars2(IActionBars2 parent,
IServiceLocator serviceLocator)
Constucts a sub action bars object using an IActionBars2 parent.
|
| Modifier and Type | Method and Description |
|---|---|
protected SubCoolBarManager |
createSubCoolBarManager(ICoolBarManager parent)
Returns a new sub coolbar manager.
|
void |
dispose()
Dispose the contributions.
|
protected IActionBars2 |
getCastedParent()
Returns the casted parent of the sub action bars.
|
ICoolBarManager |
getCoolBarManager()
Returns the cool bar manager.
|
protected void |
setActive(boolean value)
Activate / deactivate the contributions.
|
activate, activate, addPropertyChangeListener, basicSetActive, clearGlobalActionHandlers, createSubMenuManager, createSubToolBarManager, deactivate, deactivate, fireActionHandlersChanged, firePropertyChange, getActive, getGlobalActionHandler, getGlobalActionHandlers, getMenuManager, getParent, getServiceLocator, getStatusLineManager, getToolBarManager, isSubMenuManagerCreated, isSubStatusLineManagerCreated, isSubToolBarManagerCreated, partChanged, removePropertyChangeListener, setGlobalActionHandler, setServiceLocator, updateActionBarsaddListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearGlobalActionHandlers, getGlobalActionHandler, getMenuManager, getServiceLocator, getStatusLineManager, getToolBarManager, setGlobalActionHandler, updateActionBarspublic SubActionBars2(IActionBars2 parent)
parent - the action bars to virtualize; must not be null.public SubActionBars2(IActionBars2 parent, IServiceLocator serviceLocator)
parent - the action bars to virtualize; must not be null.serviceLocator - The service locator for this action bar; must not be
null.protected IActionBars2 getCastedParent()
protected SubCoolBarManager createSubCoolBarManager(ICoolBarManager parent)
parent - the parent coolbar managerpublic ICoolBarManager getCoolBarManager()
IActionBars2
Note: Clients who add or remove items from the returned cool bar manager are
responsible for calling updateActionBars so that the changes
can be propagated throughout the workbench.
getCoolBarManager in interface IActionBars2protected void setActive(boolean value)
SubActionBarssetActive in class SubActionBarspublic void dispose()
SubActionBarsdispose in class SubActionBarsGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.