01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright
03: * notice. All rights reserved.
04: */
05: package org.terracotta.dso.views;
06:
07: import org.eclipse.jdt.internal.ui.JavaPluginImages;
08: import org.eclipse.jface.action.Action;
09: import org.eclipse.ui.PlatformUI;
10:
11: public class ConfigRefreshAction extends Action {
12: private ConfigViewPart fPart;
13:
14: public ConfigRefreshAction(ConfigViewPart part) {
15: fPart = part;
16: setText("Refresh");
17: setToolTipText("Refresh");
18: JavaPluginImages.setLocalImageDescriptors(this ,
19: "refresh_nav.gif");
20: setActionDefinitionId("org.eclipse.ui.file.refresh");
21: PlatformUI.getWorkbench().getHelpSystem().setHelp(this ,
22: "refresh_action_context");
23: }
24:
25: public void run() {
26: fPart.refresh();
27: }
28: }
|