|
Eclipse Platform Release 3.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.ui.SubActionBars
Generic implementation of the IActionBars interface.
Field Summary | |
static String | P_ACTION_HANDLERS
Property constant for changes to action handlers. |
Constructor Summary | |
SubActionBars(IActionBars parent)
Construct a new SubActionBars object. |
Method Summary | |
void | activate()
Activate the contributions. |
void | activate(boolean forceVisibility)
Activate the contributions. |
void | addPropertyChangeListener(IPropertyChangeListener listener)
Adds a property change listener. |
protected void | basicSetActive(boolean active)
Sets the active flag. |
void | clearGlobalActionHandlers()
Clear the global action handlers. |
protected SubMenuManager | createSubMenuManager(IMenuManager parent)
Returns a new sub menu manager. |
protected SubToolBarManager | createSubToolBarManager(IToolBarManager parent)
Returns a new sub toolbar manager. |
void | deactivate()
Deactivate the contributions. |
void | deactivate(boolean forceHide)
Deactivate the contributions. |
void | dispose()
Dispose the contributions. |
protected void | fireActionHandlersChanged()
Notifies any property change listeners if the global action handlers have changed |
protected void | firePropertyChange(PropertyChangeEvent event)
Notifies any property change listeners that a property has changed. |
protected boolean | getActive()
Return whether the manager is currently active or not. |
IAction | getGlobalActionHandler(String actionID)
Get the handler for a window action. |
Map | getGlobalActionHandlers()
Returns the complete list of active global action handlers. |
IMenuManager | getMenuManager()
Returns the abstract menu manager. |
protected IActionBars | getParent()
Return the parent action bar manager. |
IStatusLineManager | getStatusLineManager()
Returns the status line manager. |
IToolBarManager | getToolBarManager()
Returns the tool bar manager. |
protected boolean | isSubMenuManagerCreated()
Return whether the sub menu manager has been created yet. |
protected boolean | isSubStatusLineManagerCreated()
Return whether the sub status line manager has been created yet. |
protected boolean | isSubToolBarManagerCreated()
Return whether the sub toolbar manager has been created yet. |
void | partChanged(IWorkbenchPart part)
Notification that the target part for the action bars has changed. |
void | removePropertyChangeListener(IPropertyChangeListener listener)
Removes the given property change listener. |
protected void | setActive(boolean set)
Activate / deactivate the contributions. |
void | setGlobalActionHandler(String actionID,
IAction handler)
Add a handler for a window action. |
void | updateActionBars()
Commits all UI changes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String P_ACTION_HANDLERS
Constructor Detail |
public SubActionBars(IActionBars parent)
Method Detail |
public void activate()
public void activate(boolean forceVisibility)
Workaround for toolbar layout flashing when editors contribute large amounts of items. In this case we want to force the items to be visible/hidden only when required, otherwise just change the enablement state.
public void addPropertyChangeListener(IPropertyChangeListener listener)
public void clearGlobalActionHandlers()
protected SubMenuManager createSubMenuManager(IMenuManager parent)
protected SubToolBarManager createSubToolBarManager(IToolBarManager parent)
public void deactivate()
public void deactivate(boolean forceHide)
Workaround for menubar/toolbar layout flashing when editors have many contributions. In this case we want to force the contributions to be visible/hidden only when required, otherwise just change the enablement state.
public void dispose()
protected void firePropertyChange(PropertyChangeEvent event)
protected void fireActionHandlersChanged()
protected final boolean getActive()
public IAction getGlobalActionHandler(String actionID)
public Map getGlobalActionHandlers()
public IMenuManager getMenuManager()
protected final IActionBars getParent()
public IStatusLineManager getStatusLineManager()
public IToolBarManager getToolBarManager()
protected final boolean isSubMenuManagerCreated()
protected final boolean isSubToolBarManagerCreated()
protected final boolean isSubStatusLineManagerCreated()
public void partChanged(IWorkbenchPart part)
public void removePropertyChangeListener(IPropertyChangeListener listener)
protected final void basicSetActive(boolean active)
protected void setActive(boolean set)
public void setGlobalActionHandler(String actionID, IAction handler)
public void updateActionBars()
|
Eclipse Platform Release 3.0 | ||||||||||
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, 2004. All rights reserved.