KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > pde > internal > ui > search > dependencies > DependencyExtentAction


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 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.pde.internal.ui.search.dependencies;
12
13
14 import org.eclipse.core.resources.IProject;
15 import org.eclipse.jface.action.Action;
16 import org.eclipse.pde.internal.ui.PDEUIMessages;
17 import org.eclipse.search.ui.NewSearchUI;
18
19 public class DependencyExtentAction extends Action {
20     
21     private IProject fProject;
22
23     private String JavaDoc fImportID;
24     
25     public DependencyExtentAction(IProject project, String JavaDoc importID) {
26         fProject = project;
27         fImportID = importID;
28         setText(PDEUIMessages.DependencyExtentAction_label);
29     }
30         
31     public void run() {
32         NewSearchUI.activateSearchResultView();
33         NewSearchUI.runQueryInBackground(new DependencyExtentQuery(fProject, fImportID));
34     }
35     
36 }
37
Popular Tags