Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

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 Summary
 void addContributionItem ( IContributionItem item, Expression visibleWhen)
          Adds a given contribution item with provided visibility expression and kill-switch filtering as a direct child of this container.
 void registerVisibilityForChild ( IContributionItem item, Expression visibleWhen)
          Registers visibilty for arbitrary IContributionItem instances that are NOT direct children of this container.
 

Method Detail

addContributionItem

void addContributionItem(
IContributionItem item,
                         
Expression visibleWhen)
Adds 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 in AbstractContributionFactory.createContributionItems(org.eclipse.ui.services.IServiceLocator, IContributionRoot)

Parameters:
item - the item to add
visibleWhen - the visibility expression. May be null.

registerVisibilityForChild

void registerVisibilityForChild(
IContributionItem item,
                                
Expression visibleWhen)
Registers visibilty for arbitrary IContributionItem instances that are NOT direct children of this container. Ie: children of a IContributionManager that 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 null in which case this method is a no-op.

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire