Package org.eclipse.ui.internal
Class ViewerActionBuilder
java.lang.Object
org.eclipse.ui.internal.registry.RegistryReader
org.eclipse.ui.internal.PluginActionBuilder
org.eclipse.ui.internal.ViewerActionBuilder
This class reads the registry for extensions that plug into 'popupMenus'
 extension point and deals only with the 'viewerContribution' elements.
- 
Nested Class SummaryNested classes/interfaces inherited from class org.eclipse.ui.internal.PluginActionBuilderPluginActionBuilder.BasicContribution
- 
Field SummaryFields inherited from class org.eclipse.ui.internal.PluginActionBuildercache, currentContribution, targetContributionTag, targetID
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected ActionDescriptorThis factory method returns a new ActionDescriptor for the configuration element.protected PluginActionBuilder.BasicContributionFactory method to create the helper contribution class that will hold onto the menus and actions contributed.voiddispose()Dispose of the action builderprotected booleanreadElement(IConfigurationElement element) Implements abstract method to handle the provided XML element in the registry.booleanreadViewerContributions(String id, ISelectionProvider prov, IWorkbenchPart part) Reads the contributions for a viewer menu.Methods inherited from class org.eclipse.ui.internal.PluginActionBuildercontribute, getID, getTargetID, readContributions, setAllowIdeLoggingMethods inherited from class org.eclipse.ui.internal.registry.RegistryReadergetClassValue, getDescription, logError, logMissingAttribute, logMissingElement, logUnknownElement, orderExtensions, readElementChildren, readElements, readExtension, readRegistry
- 
Constructor Details- 
ViewerActionBuilderpublic ViewerActionBuilder()Basic contstructor
 
- 
- 
Method Details- 
createActionDescriptorDescription copied from class:PluginActionBuilderThis factory method returns a new ActionDescriptor for the configuration element. It should be implemented by subclasses.- Specified by:
- createActionDescriptorin class- PluginActionBuilder
 
- 
createContributionDescription copied from class:PluginActionBuilderFactory method to create the helper contribution class that will hold onto the menus and actions contributed.- Overrides:
- createContributionin class- PluginActionBuilder
 
- 
disposepublic void dispose()Dispose of the action builder
- 
readElementDescription copied from class:PluginActionBuilderImplements abstract method to handle the provided XML element in the registry.- Overrides:
- readElementin class- PluginActionBuilder
- Returns:
- true if element was recognized, false if not.
 
- 
readViewerContributionsReads the contributions for a viewer menu. This method is typically used in conjunction withcontributeto read and then insert actions for a particular viewer menu.- Parameters:
- id- the menu id
- prov- the selection provider for the control containing the menu
- part- the part containing the menu.
- Returns:
- trueif 1 or more items were read.
 
 
-