|
Eclipse Platform Release 3.6 |
|||||||||
| 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
public abstract class 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(java.lang.String id)
Creates a compound contribution item with the given (optional) id. |
| Method Summary | |
|---|---|
void |
dispose()
The default implementation of this IContributionItem
method does nothing. |
void |
fill(Menu menu,
int index)
The default implementation of this IContributionItem
method does nothing. |
protected abstract IContributionItem[] |
getContributionItems()
Return a list of contributions items that will replace this item in the parent manager. |
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 |
|---|
fill, fill, fill, getId, getParent, isEnabled, isGroupMarker, isSeparator, isVisible, saveWidgetState, setId, 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(java.lang.String id)
id - the contribution item identifier, or null| Method Detail |
|---|
public void fill(Menu menu,
int index)
ContributionItemIContributionItem
method does nothing. Subclasses may override.
fill in interface IContributionItemfill in class ContributionItemmenu - the parent menuindex - the index where the controls are inserted,
or -1 to insert at the endprotected abstract IContributionItem[] getContributionItems()
null.public boolean isDirty()
ContributionItemIContributionItem
method returns false. Subclasses may override.
isDirty in interface IContributionItemisDirty in class ContributionItemtrue if this item is dirtypublic boolean isDynamic()
ContributionItemIContributionItem
method returns false. Subclasses may override.
isDynamic in interface IContributionItemisDynamic in class ContributionItemtrue if this item is dynamic, and
false for normal itemspublic void dispose()
ContributionItemIContributionItem
method does nothing. Subclasses may override.
dispose in interface IContributionItemdispose in class ContributionItempublic void setParent(IContributionManager parent)
IContributionItem
setParent in interface IContributionItemsetParent in class ContributionItemparent - the parent contribution manager
|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.