public interface ICoolBarManager extends IContributionManager
ICoolBarManager
interface provides protocol for managing
contributions to a cool bar. A cool bar manager delegates responsibility for
creating child controls to its contribution items by calling
IContributionItem.fill(CoolBar, int)
.
This interface is internal to the framework; it should not be implemented
outside the framework. This package provides a concrete cool bar manager
implementation, CoolBarManager
, which
clients may instantiate or subclass.
ToolBarContributionItem
Modifier and Type | Field and Description |
---|---|
static String |
SIZE
Property name of a cool item's size (value
"size" ). |
Modifier and Type | Method and Description |
---|---|
void |
add(IToolBarManager toolBarManager)
A convenience method to add a tool bar as a contribution item to this
cool bar manager.
|
IMenuManager |
getContextMenuManager()
Returns the context menu manager used by this cool bar manager.
|
boolean |
getLockLayout()
Returns whether the layout of the underlying cool bar widget is locked.
|
int |
getStyle()
Returns the style of the underlying cool bar widget.
|
void |
setContextMenuManager(IMenuManager menuManager)
Sets the context menu of this cool bar manager to the given menu
manager.
|
void |
setLockLayout(boolean value)
Locks or unlocks the layout of the underlying cool bar widget.
|
add, add, appendToGroup, appendToGroup, find, getItems, getOverrides, insertAfter, insertAfter, insertBefore, insertBefore, isDirty, isEmpty, markDirty, prependToGroup, prependToGroup, remove, remove, removeAll, update
static final String SIZE
"size"
).
The cool bar manager uses this property to tell its cool items to update their size.
void add(IToolBarManager toolBarManager)
add(new ToolBarContributionManager(toolBarManager))
.toolBarManager
- the tool bar manager to be addedToolBarContributionItem
IMenuManager getContextMenuManager()
null
if nonesetContextMenuManager(org.eclipse.jface.action.IMenuManager)
boolean getLockLayout()
true
if cool bar layout is locked, false
otherwiseint getStyle()
void setContextMenuManager(IMenuManager menuManager)
menuManager
- the context menu manager, or null
if nonegetContextMenuManager()
void setLockLayout(boolean value)
Note that items can be added or removed programmatically even while the cool bar is locked.
value
- true
to lock the cool bar, false
to unlock
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.