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, updateActionBars
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clearGlobalActionHandlers, getGlobalActionHandler, getMenuManager, getServiceLocator, getStatusLineManager, getToolBarManager, setGlobalActionHandler, updateActionBars
public 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 IActionBars2
protected void setActive(boolean value)
SubActionBars
setActive
in class SubActionBars
public void dispose()
SubActionBars
dispose
in class SubActionBars
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.