KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > ui > callhierarchy > SearchScopeAction


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  * Jesper Kamstrup Linnet (eclipse@kamstrup-linnet.dk) - initial API and implementation
10  * (report 36180: Callers/Callees view)
11  * Michael Fraenkel (fraenkel@us.ibm.com) - patch
12  * (report 60714: Call Hierarchy: display search scope in view title)
13  *******************************************************************************/

14 package org.eclipse.jdt.internal.ui.callhierarchy;
15
16 import org.eclipse.jdt.core.search.IJavaSearchScope;
17
18 import org.eclipse.jface.action.Action;
19
20
21 abstract class SearchScopeAction extends Action {
22     private final SearchScopeActionGroup fGroup;
23     
24     public SearchScopeAction(SearchScopeActionGroup group, String JavaDoc text) {
25         super(text, AS_RADIO_BUTTON);
26         this.fGroup = group;
27     }
28     
29     public abstract IJavaSearchScope getSearchScope();
30     
31     public abstract int getSearchScopeType();
32     
33     public void run() {
34         this.fGroup.setSelected(this, true);
35     }
36     
37     public abstract String JavaDoc getFullDescription();
38 }
39
Popular Tags