KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > debug > internal > ui > actions > breakpointGroups > AbstractBreakpointsViewAction


1 /*******************************************************************************
2  * Copyright (c) 2004, 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 implementation
10  *******************************************************************************/

11 package org.eclipse.debug.internal.ui.actions.breakpointGroups;
12
13 import org.eclipse.debug.internal.ui.views.breakpoints.BreakpointsView;
14 import org.eclipse.jface.action.IAction;
15 import org.eclipse.jface.viewers.ISelection;
16 import org.eclipse.swt.widgets.Event;
17 import org.eclipse.ui.IActionDelegate2;
18 import org.eclipse.ui.IViewActionDelegate;
19 import org.eclipse.ui.IViewPart;
20
21 /**
22  * Abstract implementation of an action contributed to the breakpoints view.
23  */

24 public abstract class AbstractBreakpointsViewAction implements IViewActionDelegate, IActionDelegate2 {
25     
26     /**
27      * The breakpoints view that this action has been contributed to.
28      */

29     protected BreakpointsView fView;
30
31     /* (non-Javadoc)
32      * @see org.eclipse.ui.IViewActionDelegate#init(org.eclipse.ui.IViewPart)
33      */

34     public void init(IViewPart view) {
35         fView= (BreakpointsView) view;
36     }
37     
38     /* (non-Javadoc)
39      * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
40      */

41     public void selectionChanged(IAction action, ISelection selection) {
42     }
43
44     /* (non-Javadoc)
45      * @see org.eclipse.ui.IActionDelegate2#dispose()
46      */

47     public void dispose() {
48     }
49     
50     /* (non-Javadoc)
51      * @see org.eclipse.ui.IActionDelegate2#init(org.eclipse.jface.action.IAction)
52      */

53     public void init(IAction action) {
54     }
55     
56     /* (non-Javadoc)
57      * @see org.eclipse.ui.IActionDelegate2#runWithEvent(org.eclipse.jface.action.IAction, org.eclipse.swt.widgets.Event)
58      */

59     public void runWithEvent(IAction action, Event event) {
60         run(action);
61     }
62 }
63
Popular Tags