01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.pde.internal.ui.search.dependencies;
11:
12: import org.eclipse.core.resources.IProject;
13: import org.eclipse.jface.action.Action;
14: import org.eclipse.pde.internal.ui.PDEUIMessages;
15: import org.eclipse.search.ui.NewSearchUI;
16:
17: public class DependencyExtentAction extends Action {
18:
19: private IProject fProject;
20:
21: private String fImportID;
22:
23: public DependencyExtentAction(IProject project, String importID) {
24: fProject = project;
25: fImportID = importID;
26: setText(PDEUIMessages.DependencyExtentAction_label);
27: }
28:
29: public void run() {
30: NewSearchUI.activateSearchResultView();
31: NewSearchUI.runQueryInBackground(new DependencyExtentQuery(
32: fProject, fImportID));
33: }
34:
35: }
|