public class BreakpointTypesContribution extends CompoundContributionItem implements IWorkbenchContribution
org.eclipse.ui.menus
extension point. The breakpoint
types are calculated based on the toggle breakpoint target factories
contributed through the toggleBreakpointsTargetFactories
extension point.
Following is example plug-in XML used to contribute this action to an editor's vertical ruler context menu.
<extension point="org.eclipse.ui.menus"> <menuContribution locationURI="popup:#CEditorRulerContext?after=additions" id="example.RulerPopupActions"> <menu\ id="breakpointTypes" label="Toggle Breakpoint"> <dynamic\ id="example.rulerContextMenu.breakpointTypesAction"> class="org.eclipse.debug.ui.actions.BreakpointTypesContribution" menubarPath="additions">/ </menu> </menuContribution>
Clients may refer to this class in plug-in XML. This class is not intended to be sub-classed.
Constructor and Description |
---|
BreakpointTypesContribution() |
Modifier and Type | Method and Description |
---|---|
protected IContributionItem[] |
getContributionItems()
Return a list of contributions items that will replace this item in the
parent manager.
|
void |
initialize(IServiceLocator serviceLocator)
The service locator for this contribution.
|
dispose, fill, isDirty, isDynamic, setParent
fill, fill, fill, getId, getParent, isEnabled, isGroupMarker, isSeparator, isVisible, saveWidgetState, setId, setVisible, toString, update, update
protected IContributionItem[] getContributionItems()
CompoundContributionItem
getContributionItems
in class CompoundContributionItem
null
.public void initialize(IServiceLocator serviceLocator)
IWorkbenchContribution
initialize
in interface IWorkbenchContribution
serviceLocator
- the locator which services can be retrieved. Will not be
null
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.