org.eclipse.jface.internal.provisional.action
Interface IToolBarManager2

All Superinterfaces:
IContributionManager, IToolBarManager
All Known Implementing Classes:
ToolBarManager2


public interface IToolBarManager2
extends IToolBarManager

The IToolBarManager2 extends IToolBarManager to allow clients to be isolated from the actual kind of SWT control used by the manager.

EXPERIMENTAL. This class or interface has been added as part of a work in progress. There is a guarantee neither that this API will work nor that it will remain the same. Please do not use this API without consulting with the Platform/UI team.

Since:
3.2

Field Summary
static java.lang.String PROP_LAYOUT
          The property id for changes to the control's layout
 
Method Summary
 void addPropertyChangeListener(IPropertyChangeListener listener)
          Registers a property change listner with this manager.
 ToolBar createControl(Composite parent)
          Creates and returns this manager's toolbar control.
 Control createControl2(Composite parent)
          Creates and returns this manager's control.
 void dispose()
          Disposes the resources for this manager.
 ToolBar getControl()
          Returns the toolbar control for this manager.
 Control getControl2()
          Returns the control for this manager.
 int getItemCount()
          Returns the item count of the control used by this manager.
 void removePropertyChangeListener(IPropertyChangeListener listener)
          Removes a property change listner from this manager.
 void setOverrides(IContributionManagerOverrides newOverrides)
          Sets the overrides for this contribution manager
 
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, update
 

Field Detail

PROP_LAYOUT

static final java.lang.String PROP_LAYOUT
The property id for changes to the control's layout

See Also:
Constant Field Values
Method Detail

createControl

ToolBar createControl(Composite parent)
Creates and returns this manager's toolbar control. Does not create a new control if one already exists.

Parameters:
parent - the parent control
Returns:
the toolbar control

createControl2

Control createControl2(Composite parent)
Creates and returns this manager's control. Does not create a new control if one already exists.

Parameters:
parent - the parent control
Returns:
the control

getControl

ToolBar getControl()
Returns the toolbar control for this manager.

Returns:
the toolbar control, or null if none

getControl2

Control getControl2()
Returns the control for this manager.

Returns:
the control, or null if none

dispose

void dispose()
Disposes the resources for this manager.


getItemCount

int getItemCount()
Returns the item count of the control used by this manager.

Returns:
the number of items in the control

addPropertyChangeListener

void addPropertyChangeListener(IPropertyChangeListener listener)
Registers a property change listner with this manager.

Parameters:
listener -

removePropertyChangeListener

void removePropertyChangeListener(IPropertyChangeListener listener)
Removes a property change listner from this manager.

Parameters:
listener -

setOverrides

void setOverrides(IContributionManagerOverrides newOverrides)
Sets the overrides for this contribution manager

Parameters:
newOverrides - the overrides for the items of this manager