| java.lang.Object org.eclipse.ui.internal.registry.RegistryReader org.eclipse.ui.internal.PluginActionBuilder
All known Subclasses: org.eclipse.ui.internal.ViewActionBuilder, org.eclipse.ui.internal.EditorActionBuilder, org.eclipse.ui.internal.ViewerActionBuilder, org.eclipse.ui.internal.ObjectActionContributor, org.eclipse.ui.internal.PluginActionSetBuilder,
PluginActionBuilder | abstract public class PluginActionBuilder extends RegistryReader (Code) | | This class contains shared functionality for reading action contributions
from plugins into workbench parts (both editors and views).
|
Inner Class :protected static class BasicContribution | |
Method Summary | |
final public void | contribute(IMenuManager menu, IToolBarManager toolbar, boolean appendIfMissing) Contributes submenus and/or actions into the provided menu and tool bar
managers. | abstract protected ActionDescriptor | createActionDescriptor(IConfigurationElement element) This factory method returns a new ActionDescriptor for the
configuration element. | protected BasicContribution | createContribution() Factory method to create the helper contribution class that will hold
onto the menus and actions contributed. | protected String | getID(IConfigurationElement element) Returns the id of this contributions. | protected String | getTargetID(IConfigurationElement element) Returns the name of the part ID attribute that is expected
in the target extension. | protected void | readContributions(String id, String tag, String extensionPoint) Reads the contributions from the registry for the provided workbench
part and the provided extension point ID. | protected boolean | readElement(IConfigurationElement element) Implements abstract method to handle the provided XML element
in the registry. | public static void | setAllowIdeLogging(boolean b) If set to false , some of the logs that can be caused by
use IDE plugins from an RCP app will be ignored. |
currentContribution | protected BasicContribution currentContribution(Code) | | |
targetContributionTag | protected String targetContributionTag(Code) | | |
PluginActionBuilder | public PluginActionBuilder()(Code) | | The default constructor.
|
contribute | final public void contribute(IMenuManager menu, IToolBarManager toolbar, boolean appendIfMissing)(Code) | | Contributes submenus and/or actions into the provided menu and tool bar
managers.
Parameters: menu - the menu to contribute to Parameters: toolbar - the toolbar to contribute to Parameters: appendIfMissing - append containers if missing |
createActionDescriptor | abstract protected ActionDescriptor createActionDescriptor(IConfigurationElement element)(Code) | | This factory method returns a new ActionDescriptor for the
configuration element. It should be implemented by subclasses.
|
createContribution | protected BasicContribution createContribution()(Code) | | Factory method to create the helper contribution class that will hold
onto the menus and actions contributed.
|
getID | protected String getID(IConfigurationElement element)(Code) | | Returns the id of this contributions.
|
getTargetID | protected String getTargetID(IConfigurationElement element)(Code) | | Returns the name of the part ID attribute that is expected
in the target extension.
|
readContributions | protected void readContributions(String id, String tag, String extensionPoint)(Code) | | Reads the contributions from the registry for the provided workbench
part and the provided extension point ID.
|
readElement | protected boolean readElement(IConfigurationElement element)(Code) | | Implements abstract method to handle the provided XML element
in the registry.
|
setAllowIdeLogging | public static void setAllowIdeLogging(boolean b)(Code) | | If set to false , some of the logs that can be caused by
use IDE plugins from an RCP app will be ignored.
Parameters: b - Log the errors or not. since: 3.3 |
|
|