public abstract class ToolbarManager extends java.lang.Object implements Addin
Constructor and Description |
---|
ToolbarManager() |
Modifier and Type | Method and Description |
---|---|
void |
addActionFilter(ActionFilter filter) |
protected abstract IdeAction |
getAction(java.lang.String cmdId) |
static ToolbarManager |
getToolbarManager()
Get the toolbar manager.
|
void |
initialize()
Required by the Addin interface.
|
void |
installToolbar(java.lang.String toolbarId,
Toolbar toolbar,
View view)
|
void |
refilterActions() |
void |
registerOnDemandToolbar(java.lang.String toolbarId,
Toolbar toolbar,
View view)
Registers a toolbar defined in an extension manifest to get
on-demand updates as extensions are initialized.
|
void |
removeActionFilter(ActionFilter filter) |
static void |
setToolbarManager(ToolbarManager manager)
Set the toolbar manager.
|
void |
unRegisterOnDemandToolbar(java.lang.String toolbarId,
Toolbar toolbar)
Unregisters an on-demand toolbar.
|
public static ToolbarManager getToolbarManager()
public static void setToolbarManager(ToolbarManager manager)
manager
- the toolbar manager.public void registerOnDemandToolbar(java.lang.String toolbarId, Toolbar toolbar, View view)
toolbarId
- the id of the toolbar to installtoolbar
- the toolbar control to install items intoview
- an optional view. If specified, the toolbar is owned by a view
and all actions will only work with that view's context.public void unRegisterOnDemandToolbar(java.lang.String toolbarId, Toolbar toolbar)
toolbarId
- the id of the toolbar to unregistertoolbar
- the toolbar to unregister@Deprecated public void installToolbar(java.lang.String toolbarId, Toolbar toolbar, View view)
registerOnDemandToolbar(String, Toolbar, View)
and unRegisterOnDemandToolbar(String, Toolbar)
protected abstract IdeAction getAction(java.lang.String cmdId)
public void initialize()
initialize
in interface Addin
AddinManager
public void addActionFilter(ActionFilter filter)
public void removeActionFilter(ActionFilter filter)
public void refilterActions()