Package org.eclipse.jface.action
Class SubCoolBarManager
java.lang.Object
org.eclipse.jface.action.SubContributionManager
org.eclipse.jface.action.SubCoolBarManager
- All Implemented Interfaces:
- IContributionManager,- ICoolBarManager
A 
SubCoolBarManager monitors the additional and removal of
 items from a parent manager so that visibility of the entire set can be changed as a
 unit.- Since:
- 3.0
- 
Field SummaryFields inherited from interface org.eclipse.jface.action.ICoolBarManagerSIZE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidadd(IToolBarManager toolBarManager) A convenience method to add a tool bar as a contribution item to this cool bar manager.Returns the context menu manager used by this cool bar manager.booleanReturns whether the layout of the underlying cool bar widget is locked.protected final ICoolBarManagerReturns the parent cool bar manager that this sub-manager contributes to.intgetStyle()Returns the style of the underlying cool bar widget.voidsetContextMenuManager(IMenuManager menuManager) Sets the context menu of this cool bar manager to the given menu manager.voidsetLockLayout(boolean value) Locks or unlocks the layout of the underlying cool bar widget.voidupdate(boolean force) Updates this manager's underlying widget(s) with any changes which have been made to it or its items.Methods inherited from class org.eclipse.jface.action.SubContributionManageradd, add, appendToGroup, appendToGroup, disposeManager, find, getItems, getOverrides, getParent, insertAfter, insertAfter, insertBefore, insertBefore, isDirty, isEmpty, isVisible, itemAdded, itemRemoved, items, markDirty, prependToGroup, prependToGroup, remove, remove, removeAll, setVisible, unwrap, wrapMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.jface.action.IContributionManageradd, add, appendToGroup, appendToGroup, find, getItems, getOverrides, insertAfter, insertAfter, insertBefore, insertBefore, isDirty, isEmpty, markDirty, prependToGroup, prependToGroup, remove, remove, removeAll
- 
Constructor Details- 
SubCoolBarManagerConstructs a new manager.- Parameters:
- mgr- the parent manager. All contributions made to the- SubCoolBarManagerare forwarded and appear in the parent manager.
 
 
- 
- 
Method Details- 
addDescription copied from interface:ICoolBarManagerA convenience method to add a tool bar as a contribution item to this cool bar manager. Equivalent toadd(new ToolBarContributionManager(toolBarManager)).- Specified by:
- addin interface- ICoolBarManager
- Parameters:
- toolBarManager- the tool bar manager to be added
- See Also:
 
- 
getStylepublic int getStyle()Description copied from interface:ICoolBarManagerReturns the style of the underlying cool bar widget.- Specified by:
- getStylein interface- ICoolBarManager
- Returns:
- the style of the cool bar
 
- 
getParentCoolBarManagerReturns the parent cool bar manager that this sub-manager contributes to.- Returns:
- the parent cool bar manager
 
- 
getLockLayoutpublic boolean getLockLayout()Description copied from interface:ICoolBarManagerReturns whether the layout of the underlying cool bar widget is locked.- Specified by:
- getLockLayoutin interface- ICoolBarManager
- Returns:
- trueif cool bar layout is locked,- falseotherwise
 
- 
setLockLayoutpublic void setLockLayout(boolean value) Description copied from interface:ICoolBarManagerLocks or unlocks the layout of the underlying cool bar widget. Once the cool bar is locked, cool items cannot be repositioned by the user.Note that items can be added or removed programmatically even while the cool bar is locked. - Specified by:
- setLockLayoutin interface- ICoolBarManager
- Parameters:
- value-- trueto lock the cool bar,- falseto unlock
 
- 
getContextMenuManagerDescription copied from interface:ICoolBarManagerReturns the context menu manager used by this cool bar manager. This context menu manager is used by the cool bar manager except for cool items that provide their own.- Specified by:
- getContextMenuManagerin interface- ICoolBarManager
- Returns:
- the context menu manager, or nullif none
- See Also:
 
- 
setContextMenuManagerDescription copied from interface:ICoolBarManagerSets the context menu of this cool bar manager to the given menu manager.- Specified by:
- setContextMenuManagerin interface- ICoolBarManager
- Parameters:
- menuManager- the context menu manager, or- nullif none
- See Also:
 
- 
updatepublic void update(boolean force) Description copied from interface:IContributionManagerUpdates this manager's underlying widget(s) with any changes which have been made to it or its items. Normally changes to a contribution manager merely mark it as dirty, without updating the underlying widgets. This brings the underlying widgets up to date with any changes.- Specified by:
- updatein interface- IContributionManager
- Parameters:
- force-- truemeans update even if not dirty, and- falsefor normal incremental updating
 
 
-