KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > debug > ui > actions > ToggleMethodBreakpointActionDelegate


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.debug.ui.actions;
12
13 import org.eclipse.core.runtime.CoreException;
14 import org.eclipse.debug.internal.ui.actions.breakpoints.ToggleBreakpointObjectActionDelegate;
15 import org.eclipse.jface.viewers.ISelection;
16 import org.eclipse.ui.IWorkbenchPart;
17
18 /**
19  * A toggle method breakpoint action that can be contributed an object
20  * contribution. The action will toggle method breakpoints on objects
21  * that provide an <code>IToggleBreakpointsTarget</code> adapter.
22  * <p>
23  * Clients may reference/contribute this class as an object contribution
24  * action delegate in plug-in XML. This class is not intended to be
25  * subclassed.
26  * </p>
27  * @since 3.0
28  */

29 public class ToggleMethodBreakpointActionDelegate extends ToggleBreakpointObjectActionDelegate {
30     /* (non-Javadoc)
31      * @see org.eclipse.debug.internal.ui.actions.ToggleBreakpointObjectActionDelegate#performAction(org.eclipse.debug.internal.ui.actions.IToggleBreakpointsTarget, org.eclipse.ui.IWorkbenchPart, org.eclipse.jface.viewers.ISelection)
32      */

33     protected void performAction(IToggleBreakpointsTarget target, IWorkbenchPart part, ISelection selection) throws CoreException {
34         target.toggleMethodBreakpoints(part, selection);
35     }
36 }
37
Popular Tags