| /******************************************************************************* |
| * Copyright (c) 2000, 2011 IBM Corporation and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * IBM Corporation - initial API and implementation |
| *******************************************************************************/ |
| package org.eclipse.jdt.debug.ui.actions; |
| |
| |
| import org.eclipse.jdt.internal.debug.ui.actions.JavaBreakpointPropertiesRulerAction; |
| import org.eclipse.jface.action.IAction; |
| import org.eclipse.jface.text.source.IVerticalRulerInfo; |
| import org.eclipse.ui.texteditor.AbstractRulerActionDelegate; |
| import org.eclipse.ui.texteditor.ITextEditor; |
| /** |
| * Action to open a properties dialog on a Java breakpoint from a ruler context menu. |
| * <p> |
| * This action can also be contributed to a vertical ruler context menu via the |
| * <code>popupMenus</code> extension point, by referencing the ruler's context |
| * menu identifier in the <code>targetID</code> attribute. |
| * <pre> |
| * <extension point="org.eclipse.ui.popupMenus"> |
| * <viewerContribution |
| * targetID="example.rulerContextMenuId" |
| * id="example.RulerPopupActions"> |
| * <action |
| * label="Properties" |
| * class="org.eclipse.jdt.debug.ui.actions.JavaBreakpointPropertiesRulerActionDelegate" |
| * menubarPath="additions" |
| * id="example.rulerContextMenu.javaBreakpointPropertiesAction"> |
| * </action> |
| * </viewerContribution> |
| * </pre> |
| * </p> |
| * <p> |
| * Clients may refer to this class as an action delegate in plug-in XML. |
| * </p> |
| * @since 3.2 |
| * @noinstantiate This class is not intended to be instantiated by clients. |
| * @noextend This class is not intended to be subclassed by clients. |
| */ |
| public class JavaBreakpointPropertiesRulerActionDelegate extends AbstractRulerActionDelegate { |
| |
| /** |
| * @see AbstractRulerActionDelegate#createAction(ITextEditor, IVerticalRulerInfo) |
| */ |
| @Override |
| protected IAction createAction(ITextEditor editor, IVerticalRulerInfo rulerInfo) { |
| return new JavaBreakpointPropertiesRulerAction(editor, rulerInfo); |
| } |
| } |