Package org.eclipse.ui.menus
Interface IContributionRoot
public interface IContributionRoot
Instances of this interface represent a position in the contribution
 hierarchy into which 
AbstractContributionFactory instances may insert
 elements. Instances of this interface are provided by the platform and this
 interface should NOT be implemented by clients.- Since:
- 3.3
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddContributionItem(IContributionItem item, Expression visibleWhen) Adds a given contribution item with provided visibility expression and kill-switch filtering as a direct child of this container.voidregisterVisibilityForChild(IContributionItem item, Expression visibleWhen) Registers visibilty for arbitraryIContributionIteminstances that are NOT direct children of this container.
- 
Method Details- 
addContributionItemAdds a given contribution item with provided visibility expression and kill-switch filtering as a direct child of this container. This should be called for all top-level elements created inAbstractContributionFactory.createContributionItems(org.eclipse.ui.services.IServiceLocator, IContributionRoot)- Parameters:
- item- the item to add
- visibleWhen- the visibility expression. May be- null.
 
- 
registerVisibilityForChildRegisters visibilty for arbitraryIContributionIteminstances that are NOT direct children of this container. Ie: children of aIContributionManagerthat has been previously registered with a call to {addContributionItem(IContributionItem, Expression).- Parameters:
- item- the item for which to register a visibility clause
- visibleWhen- the visibility expression. May be- nullin which case this method is a no-op.
 
 
-