blob: 5220000776b0abd2e40924efd5b5c767aefa9b7c [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2017 IBM Corporation and others.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* SPDX-License-Identifier: EPL-2.0
*
*******************************************************************************/
package org.eclipse.dltk.internal.ui.callhierarchy;
import org.eclipse.dltk.core.IDLTKLanguageToolkit;
import org.eclipse.dltk.core.search.IDLTKSearchScope;
import org.eclipse.jface.action.Action;
abstract class SearchScopeAction extends Action {
protected final SearchScopeActionGroup fGroup;
public SearchScopeAction(SearchScopeActionGroup group, String text) {
super(text, AS_RADIO_BUTTON);
this.fGroup = group;
}
public abstract IDLTKSearchScope getSearchScope();
public abstract int getSearchScopeType();
@Override
public void run() {
this.fGroup.setSelected(this, true);
}
public IDLTKLanguageToolkit getLanguageToolkit() {
return fGroup.getLangaugeToolkit();
}
public abstract String getFullDescription();
}