|
Eclipse Platform Release 4.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.action.ContributionItem
org.eclipse.ui.actions.CompoundContributionItem
org.eclipse.debug.ui.actions.BreakpointTypesContribution
public class BreakpointTypesContribution
Breakpoint ruler pop-up action that creates a sub-menu to select the currently
active breakpoint type. This menu contribution can be added to an editor
with the 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 Summary | |
---|---|
BreakpointTypesContribution()
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.eclipse.ui.actions.CompoundContributionItem |
---|
fill, isDirty, isDynamic, setParent |
Methods inherited from class org.eclipse.jface.action.ContributionItem |
---|
dispose, fill, fill, fill, getId, getParent, isEnabled, isGroupMarker, isSeparator, isVisible, saveWidgetState, setId, setVisible, toString, update, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BreakpointTypesContribution()
Method Detail |
---|
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
|
Eclipse Platform Release 4.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2013. All rights reserved.