Package org.eclipse.ui.internal
Class PluginActionSetBuilder
java.lang.Object
org.eclipse.ui.internal.registry.RegistryReader
org.eclipse.ui.internal.PluginActionBuilder
org.eclipse.ui.internal.PluginActionSetBuilder
This builder reads the actions for an action set from the registry.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classUsed by the workbench window extension handler to unhook action sets from their associated window.Nested 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 TypeMethodDescriptionvoidbuildMenuAndToolBarStructure(PluginActionSet set, IWorkbenchWindow window) Read the actions within a config element.protected 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.static IContributionItemfindInsertionPoint(String startId, String sortId, IContributionManager mgr, boolean startVsEnd) Returns the insertion point for a new contribution item.protected voidprotected voidreadActionExtensions(PluginActionSet set, IWorkbenchWindow window) Read the actions within a config element.protected voidremoveActionExtensions(PluginActionSet set, IWorkbenchWindow window) Remove the given action set from the window.Methods inherited from class org.eclipse.ui.internal.PluginActionBuildercontribute, getID, getTargetID, readContributions, readElement, setAllowIdeLoggingMethods inherited from class org.eclipse.ui.internal.registry.RegistryReadergetClassValue, getDescription, logError, logMissingAttribute, logMissingElement, logUnknownElement, orderExtensions, readElementChildren, readElements, readExtension, readRegistry
- 
Constructor Details- 
PluginActionSetBuilderpublic PluginActionSetBuilder()Constructs a new builder.
 
- 
- 
Method Details- 
buildMenuAndToolBarStructureRead the actions within a config element. Called by customize perspective- Parameters:
- set- the action set
- window- the window to contribute to
 
- 
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
 
- 
findInsertionPointpublic static IContributionItem findInsertionPoint(String startId, String sortId, IContributionManager mgr, boolean startVsEnd) Returns the insertion point for a new contribution item. Clients should use this item as a reference point for insertAfter.- Parameters:
- startId- the reference id for insertion
- sortId- the sorting id for the insertion. If null then the item will be inserted at the end of all action sets.
- mgr- the target menu manager.
- startVsEnd- if- truethe items are added at the start of action with the same id; else they are added to the end
- Returns:
- the insertion point, or null if not found.
 
- 
processAdjunctContributionsprotected void processAdjunctContributions()
- 
readActionExtensionsRead the actions within a config element.
- 
removeActionExtensionsRemove the given action set from the window.- Parameters:
- set- the set to remove
- window- the window to remove from
 
 
-