1 12 package org.eclipse.jdt.internal.ui.callhierarchy; 13 14 import org.eclipse.jface.action.Action; 15 16 import org.eclipse.ui.PlatformUI; 17 18 import org.eclipse.jdt.internal.ui.IJavaHelpContextIds; 19 import org.eclipse.jdt.internal.ui.JavaPluginImages; 20 21 class RefreshAction extends Action { 22 private CallHierarchyViewPart fPart; 23 24 public RefreshAction(CallHierarchyViewPart part) { 25 fPart= part; 26 setText(CallHierarchyMessages.RefreshAction_text); 27 setToolTipText(CallHierarchyMessages.RefreshAction_tooltip); 28 JavaPluginImages.setLocalImageDescriptors(this, "refresh_nav.gif"); setActionDefinitionId("org.eclipse.ui.file.refresh"); PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.CALL_HIERARCHY_REFRESH_ACTION); 31 } 32 33 36 public void run() { 37 fPart.refresh(); 38 } 39 } 40 | Popular Tags |