|
Eclipse Platform Release 3.3 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
The 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| Field Summary | |
|---|---|
static String |
SIZE
Property name of a cool item's size (value "size").
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from interface org.eclipse.jface.action.IContributionManager |
|---|
add, add, appendToGroup, appendToGroup, find, getItems, getOverrides, insertAfter, insertAfter, insertBefore, insertBefore, isDirty, isEmpty, markDirty, prependToGroup, prependToGroup, remove, remove, removeAll, update |
| Field Detail |
public static final String SIZE
"size").
The cool bar manager uses this property to tell its cool items to update their size.
@issue consider declaring this
constant elsewhere,
Constant Field Values| Method Detail |
public void add(IToolBarManager toolBarManager)
add(new ToolBarContributionManager(toolBarManager)).
toolBarManager - the tool bar manager to be addedToolBarContributionItempublic IMenuManager getContextMenuManager()
null if nonesetContextMenuManager(org.eclipse.jface.action.IMenuManager)public boolean getLockLayout()
true if cool bar layout is locked, false
otherwisepublic int getStyle()
public void setContextMenuManager(IMenuManager menuManager)
menuManager - the context menu manager, or null if nonegetContextMenuManager()public 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
|
Eclipse Platform Release 3.3 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.