|
Eclipse Platform Release 3.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A contribution item represents a contribution to a shared UI resource such as a menu or tool bar. More generally, contribution items are managed by a contribution manager. For instance, in a tool bar a contribution item is a tool bar button or a separator. In a menu bar a contribution item is a menu, and in a menu a contribution item is a menu item or separator.
A contribution item can realize itself in different SWT widgets, using the different fill methods. The same type of contribution item can be used with a MenuBarManager, ToolBarManager, CoolBarManager, or a StatusLineManager.
This interface is internal to the framework; it should not be implemented outside the framework.
Method Summary | |
void | dispose()
Disposes of this contribution item. |
void | fill(Composite parent)
Fills the given composite control with controls representing this contribution item. |
void | fill(CoolBar parent,
int index)
Fills the given cool bar with controls representing this contribution item. |
void | fill(Menu parent,
int index)
Fills the given menu with controls representing this contribution item. |
void | fill(ToolBar parent,
int index)
Fills the given tool bar with controls representing this contribution item. |
String | getId()
Returns the identifier of this contribution item. |
boolean | isDirty()
Returns whether this contribution item is dirty. |
boolean | isDynamic()
Returns whether this contribution item is dynamic. |
boolean | isEnabled()
Returns whether this contribution item is enabled. |
boolean | isGroupMarker()
Returns whether this contribution item is a group marker. |
boolean | isSeparator()
Returns whether this contribution item is a separator. |
boolean | isVisible()
Returns whether this contribution item is visibile within its manager. |
void | saveWidgetState()
Saves any state information of the control(s) owned by this contribution item. |
void | setParent(IContributionManager parent)
Sets the parent manager of this item |
void | setVisible(boolean visible)
Sets whether this contribution item is visibile within its manager. |
void | update()
Updates any SWT controls cached by this contribution item with any changes which have been made to this contribution item since the last update. |
void | update(String id)
Updates any SWT controls cached by this contribution item with changes for the the given property. |
Method Detail |
public void dispose()
public void fill(Composite parent)
public void fill(Menu parent, int index)
public void fill(ToolBar parent, int index)
public void fill(CoolBar parent, int index)
public String getId()
public boolean isEnabled()
public boolean isDirty()
public boolean isDynamic()
public boolean isGroupMarker()
public boolean isSeparator()
public boolean isVisible()
public void saveWidgetState()
public void setParent(IContributionManager parent)
public void setVisible(boolean visible)
public void update()
public void update(String id)
|
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.