1 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 fImportID; 24 25 public DependencyExtentAction(IProject project, String 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 |