1 11 package org.eclipse.jdt.internal.ui.actions; 12 13 import org.eclipse.jface.action.Action; 14 15 import org.eclipse.ui.PlatformUI; 16 17 import org.eclipse.jdt.internal.ui.IJavaHelpContextIds; 18 import org.eclipse.jdt.internal.ui.JavaPluginImages; 19 20 21 27 public abstract class AbstractToggleLinkingAction extends Action { 28 29 32 public AbstractToggleLinkingAction() { 33 super(ActionMessages.ToggleLinkingAction_label); 34 setDescription(ActionMessages.ToggleLinkingAction_description); 35 setToolTipText(ActionMessages.ToggleLinkingAction_tooltip); 36 JavaPluginImages.setLocalImageDescriptors(this, "synced.gif"); PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.LINK_EDITOR_ACTION); 38 } 39 40 43 public abstract void run(); 44 } 45 | Popular Tags |