1 12 package org.eclipse.jdt.internal.ui.callhierarchy; 13 14 import org.eclipse.jdt.internal.ui.IJavaHelpContextIds; 15 import org.eclipse.jdt.internal.ui.JavaPluginImages; 16 import org.eclipse.jface.action.Action; 17 18 import org.eclipse.ui.PlatformUI; 19 20 23 public class CancelSearchAction extends Action { 24 25 private CallHierarchyViewPart fView; 26 27 public CancelSearchAction(CallHierarchyViewPart view) { 28 super(CallHierarchyMessages.CancelSearchAction_label); 29 fView= view; 30 setToolTipText(CallHierarchyMessages.CancelSearchAction_tooltip); 31 JavaPluginImages.setLocalImageDescriptors(this, "ch_cancel.gif"); 33 PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.CALL_HIERARCHY_CANCEL_SEARCH_ACTION); 34 } 35 36 public void run() { 37 fView.cancelJobs(); 38 } 39 } 40 | Popular Tags |