|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.jface.action.SubContributionItem
A SubContributionItem
is a wrapper for an IContributionItem
.
It is used within a SubContributionManager
to control the visibility
of items.
This class is not intended to be subclassed.
Constructor Summary | |
SubContributionItem(IContributionItem item)
Creates a new SubContributionItem . |
Method Summary | |
void |
fill(Composite parent)
Fills the given composite control 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. |
IContributionItem |
getInnerItem()
Returns the inner contribution item. |
boolean |
isDynamic()
Returns whether this contribution item is dynamic. |
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 |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SubContributionItem(IContributionItem item)
SubContributionItem
.
Method Detail |
public void fill(Composite parent)
IContributionItem
StatusLineManager
.
fill
in interface IContributionItem
parent
- the parent controlpublic void fill(Menu parent, int index)
IContributionItem
MenuManager
.
fill
in interface IContributionItem
parent
- the parent menuindex
- the index where the controls are inserted,
or -1
to insert at the endpublic void fill(ToolBar parent, int index)
IContributionItem
ToolBarManager
.
fill
in interface IContributionItem
parent
- the parent tool barindex
- the index where the controls are inserted,
or -1
to insert at the endpublic String getId()
IContributionItem
getId
in interface IContributionItem
null
if nonepublic IContributionItem getInnerItem()
public boolean isDynamic()
IContributionItem
isDynamic
in interface IContributionItem
true
if this item is dynamic, and
false
for normal itemspublic boolean isGroupMarker()
IContributionItem
isGroupMarker
in interface IContributionItem
true
if this item is a group marker, and
false
for normal itemsGroupMarker
,
IContributionManager.appendToGroup(java.lang.String, org.eclipse.jface.action.IAction)
,
IContributionManager.prependToGroup(java.lang.String, org.eclipse.jface.action.IAction)
public boolean isSeparator()
IContributionItem
isSeparator
in interface IContributionItem
true
if this item is a separator, and
false
for normal itemsSeparator
public boolean isVisible()
IContributionItem
isVisible
in interface IContributionItem
true
if this item is visible, and
false
otherwisepublic void setParent(IContributionManager parent)
IContributionItem
setParent
in interface IContributionItem
parent
- the parent contribution managerpublic void setVisible(boolean visible)
IContributionItem
setVisible
in interface IContributionItem
visible
- true
if this item should be visible, and
false
otherwisepublic void update()
IContributionItem
update
in interface IContributionItem
public void update(String id)
IContributionItem
update
in interface IContributionItem
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |