setActive(boolean set) Activate / deactivate the contributions.
public void
setGlobalActionHandler(String actionID, IAction handler) Add a handler for a window action.
Parameters: actionID - an action ID declared in the registry Parameters: handler - an action which implements the action ID.
Construct a new SubActionBars object. The service locator
will simply be the service locator of the parent.
Parameters: parent - The parent of this action bar; must not be null.
Constructs a new instance of SubActionBars.
Parameters: parent - The parent of this action bar; must not be null. Parameters: serviceLocator - The service locator for this action bar; should not benull. since: 3.2
public void activate(boolean forceVisibility)(Code)
Activate the contributions.
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.
addPropertyChangeListener
public void addPropertyChangeListener(IPropertyChangeListener listener)(Code)
Adds a property change listener. Has no effect if an identical listener
is already registered.
Parameters: listener - a property change listener
basicSetActive
final protected void basicSetActive(boolean active)(Code)
Sets the active flag. Clients should not call this method directly unless
they are overriding the setActive() method.
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.
Notifies any property change listeners that a property has changed. Only
listeners registered at the time this method is called are notified.
Parameters: event - the property change event See Also: IPropertyChangeListener.propertyChange
Return whether the manager is currently active or not.
getGlobalActionHandler
public IAction getGlobalActionHandler(String actionID)(Code)
Get the handler for a window action.
Parameters: actionID - an action ID declared in the registry an action handler which implements the action ID, ornull if none is registered.
Notification that the target part for the action bars has changed.
removePropertyChangeListener
public void removePropertyChangeListener(IPropertyChangeListener listener)(Code)
Removes the given property change listener. Has no effect if an identical
listener is not registered.
Parameters: listener - a property change listener
public void setGlobalActionHandler(String actionID, IAction handler)(Code)
Add a handler for a window action.
Parameters: actionID - an action ID declared in the registry Parameters: handler - an action which implements the action ID. nullmay be passed to deregister a handler.