|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jface.action.SubContributionManager
org.eclipse.jface.action.SubCoolBarManager
public class SubCoolBarManager
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.
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.jface.action.ICoolBarManager |
|---|
SIZE |
| Constructor Summary | |
|---|---|
SubCoolBarManager(ICoolBarManager mgr)
Constructs a new manager. |
|
| 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. |
protected ICoolBarManager |
getParentCoolBarManager()
Returns the parent cool bar manager that this sub-manager contributes to. |
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. |
void |
update(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.SubContributionManager |
|---|
add, 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, wrap |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 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 |
| Constructor Detail |
|---|
public SubCoolBarManager(ICoolBarManager mgr)
mgr - the parent manager. All contributions made to the
SubCoolBarManager are forwarded and appear in the
parent manager.| Method Detail |
|---|
public void add(IToolBarManager toolBarManager)
ICoolBarManageradd(new ToolBarContributionManager(toolBarManager)).
add in interface ICoolBarManagertoolBarManager - the tool bar manager to be addedToolBarContributionItempublic int getStyle()
ICoolBarManager
getStyle in interface ICoolBarManagerprotected final ICoolBarManager getParentCoolBarManager()
public boolean getLockLayout()
ICoolBarManager
getLockLayout in interface ICoolBarManagertrue if cool bar layout is locked, false
otherwisepublic void setLockLayout(boolean value)
ICoolBarManagerNote that items can be added or removed programmatically even while the cool bar is locked.
setLockLayout in interface ICoolBarManagervalue - true to lock the cool bar, false
to unlockpublic IMenuManager getContextMenuManager()
ICoolBarManager
getContextMenuManager in interface ICoolBarManagernull if noneICoolBarManager.setContextMenuManager(org.eclipse.jface.action.IMenuManager)public void setContextMenuManager(IMenuManager menuManager)
ICoolBarManager
setContextMenuManager in interface ICoolBarManagermenuManager - the context menu manager, or null if noneICoolBarManager.getContextMenuManager()public void update(boolean force)
IContributionManager
update in interface IContributionManagerforce - true means update even if not dirty,
and false for normal incremental updating
|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2011. All rights reserved.