1 11 package org.eclipse.pde.internal.ui.search; 12 13 14 import org.eclipse.jface.action.Action; 15 import org.eclipse.pde.core.plugin.IPluginImport; 16 import org.eclipse.pde.internal.ui.PDEPlugin; 17 import org.eclipse.search.ui.SearchUI; 18 import org.eclipse.ui.*; 19 20 public class DependencyExtentAction extends Action { 21 22 private static final String KEY_COMPUTE = "DependencyExtentAction.label"; 24 DependencyExtentSearchOperation op; 25 26 public DependencyExtentAction(IPluginImport object) { 27 op = new DependencyExtentSearchOperation(object); 28 setText(PDEPlugin.getResourceString(KEY_COMPUTE)); 29 } 30 31 32 public void run() { 33 try { 34 SearchUI.activateSearchResultView(); 35 PlatformUI.getWorkbench().getProgressService().busyCursorWhile(op); 36 } catch (Exception e) { 37 } 38 } 39 40 41 42 } 43 | Popular Tags |