KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > debug > ui > actions > JavaBreakpointPropertiesRulerActionDelegate


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jdt.debug.ui.actions;
12
13
14 import org.eclipse.jdt.internal.debug.ui.actions.JavaBreakpointPropertiesRulerAction;
15 import org.eclipse.jface.action.IAction;
16 import org.eclipse.jface.text.source.IVerticalRulerInfo;
17 import org.eclipse.ui.texteditor.AbstractRulerActionDelegate;
18 import org.eclipse.ui.texteditor.ITextEditor;
19 /**
20  * Action to open a properties dialog on a Java breakpoint from a ruler context menu.
21  * <p>
22  * This action can also be contributed to a vertical ruler context menu via the
23  * <code>popupMenus</code> extension point, by referencing the ruler's context
24  * menu identifier in the <code>targetID</code> attribute.
25  * <pre>
26  * &lt;extension point="org.eclipse.ui.popupMenus"&gt;
27  * &lt;viewerContribution
28  * targetID="example.rulerContextMenuId"
29  * id="example.RulerPopupActions"&gt;
30  * &lt;action
31  * label="Properties"
32  * class="org.eclipse.jdt.debug.ui.actions.JavaBreakpointPropertiesRulerActionDelegate"
33  * menubarPath="additions"
34  * id="example.rulerContextMenu.javaBreakpointPropertiesAction"&gt;
35  * &lt;/action&gt;
36  * &lt;/viewerContribution&gt;
37  * </pre>
38  * </p>
39  * <p>
40  * Clients may refer to this class as an action delegate in plug-in XML. This class
41  * is not intended to be subclassed.
42  * </p>
43  * @since 3.2
44  */

45 public class JavaBreakpointPropertiesRulerActionDelegate extends AbstractRulerActionDelegate {
46
47     /**
48      * @see AbstractRulerActionDelegate#createAction(ITextEditor, IVerticalRulerInfo)
49      */

50     protected IAction createAction(ITextEditor editor, IVerticalRulerInfo rulerInfo) {
51         return new JavaBreakpointPropertiesRulerAction(editor, rulerInfo);
52     }
53 }
54
Popular Tags