blob: 2de766a6b851a4d8eca4fb33adf4fdd18890ef3d [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004, 2008 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corp. - Rational Software - initial implementation
*******************************************************************************/
/* -- ST-Origin --
* Source folder: org.eclipse.cdt.ui/src
* Class: org.eclipse.cdt.internal.ui.search.actions.FindRefsAction
* Version: 1.11
*/
package org.eclipse.ptp.internal.rdt.ui.search.actions;
import org.eclipse.cdt.core.model.ICElement;
import org.eclipse.cdt.internal.ui.editor.CEditor;
import org.eclipse.cdt.internal.ui.search.CSearchMessages;
import org.eclipse.cdt.internal.ui.search.PDOMSearchQuery;
import org.eclipse.ui.IWorkbenchSite;
public class FindRefsAction extends FindAction {
public FindRefsAction(CEditor editor) {
this(editor,
CSearchMessages.CSearch_FindReferencesAction_label,
CSearchMessages.CSearch_FindReferencesAction_tooltip);
}
public FindRefsAction(IWorkbenchSite site){
this(site,
CSearchMessages.CSearch_FindReferencesAction_label,
CSearchMessages.CSearch_FindReferencesAction_tooltip);
}
public FindRefsAction(CEditor editor, String label, String tooltip) {
super(editor);
setText(label);
setToolTipText(tooltip);
}
public FindRefsAction(IWorkbenchSite site, String label, String tooltip) {
super(site);
setText(label);
setToolTipText(tooltip);
}
protected String getScopeDescription() {
return CSearchMessages.WorkspaceScope;
}
protected ICElement[] getScope() {
return null;
}
protected int getLimitTo() {
return PDOMSearchQuery.FIND_REFERENCES;
}
}