|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.action.ContributionItem
org.eclipse.ui.actions.CompoundContributionItem
A compound contribution is a contribution item consisting of a dynamic list of contribution items.
Constructor Summary | |
---|---|
protected |
CompoundContributionItem()
Creates a compound contribution item with a null id. |
protected |
CompoundContributionItem(String id)
Creates a compound contribution item with the given (optional) id. |
Method Summary | |
---|---|
void |
fill(Menu menu,
int index)
The default implementation of this IContributionItem
method does nothing. |
protected abstract IContributionItem[] |
getContributionItems()
|
boolean |
isDirty()
The default implementation of this IContributionItem
method returns false . |
boolean |
isDynamic()
The default implementation of this IContributionItem
method returns false . |
void |
setParent(IContributionManager parent)
Sets the parent manager of this item |
Methods inherited from class org.eclipse.jface.action.ContributionItem |
---|
dispose, fill, fill, fill, getId, getParent, isEnabled, isGroupMarker, isSeparator, isVisible, saveWidgetState, setVisible, toString, update, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
protected CompoundContributionItem()
null
id.
protected CompoundContributionItem(String id)
id
- the contribution item identifier, or null
Method Detail |
public void fill(Menu menu, int index)
ContributionItem
IContributionItem
method does nothing. Subclasses may override.
fill
in interface IContributionItem
fill
in class ContributionItem
protected abstract IContributionItem[] getContributionItems()
public boolean isDirty()
ContributionItem
IContributionItem
method returns false
. Subclasses may override.
isDirty
in interface IContributionItem
isDirty
in class ContributionItem
public boolean isDynamic()
ContributionItem
IContributionItem
method returns false
. Subclasses may override.
isDynamic
in interface IContributionItem
isDynamic
in class ContributionItem
public void setParent(IContributionManager parent)
IContributionItem
setParent
in interface IContributionItem
setParent
in class ContributionItem
|
Eclipse Platform Release 3.1 |
|||||||||||
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, 2005. All rights reserved.