KickJava   Java API By Example, From Geeks To Geeks.

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


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.internal.ui.actions.breakpointGroups;
12
13 import org.eclipse.debug.internal.ui.views.breakpoints.BreakpointsView;
14 import org.eclipse.ui.actions.SelectionListenerAction;
15
16 /**
17  * A selection listener action for the breakpoints view.
18  */

19 public abstract class BreakpointSelectionAction extends SelectionListenerAction {
20     
21     private BreakpointsView fView;
22     
23     /**
24      * Constructs an action for the breakpoints view.
25      *
26      * @param text action name
27      * @param view breakpoints view
28      */

29     public BreakpointSelectionAction(String JavaDoc text, BreakpointsView view) {
30         super(text);
31         fView = view;
32     }
33     
34     /**
35      * Returns the breakpoints view.
36      *
37      * @return breakpoints view
38      */

39     protected BreakpointsView getBreakpointsView() {
40         return fView;
41     }
42
43 }
44
Popular Tags