X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/actions/AbstractToggleLinkingAction.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/actions/AbstractToggleLinkingAction.java index 5c9c025..db98033 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/actions/AbstractToggleLinkingAction.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/actions/AbstractToggleLinkingAction.java @@ -1,10 +1,10 @@ /******************************************************************************* * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials + * All rights reserved. This program and the accompanying materials * are made available under the terms of the Common Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/cpl-v10.html - * + * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ @@ -14,26 +14,27 @@ import net.sourceforge.phpdt.internal.ui.IJavaHelpContextIds; import net.sourceforge.phpdt.internal.ui.PHPUiImages; import org.eclipse.jface.action.Action; -import org.eclipse.ui.help.WorkbenchHelp; - +import org.eclipse.ui.PlatformUI; /** - * This is an action template for actions that toggle whether - * it links its selection to the active editor. + * This is an action template for actions that toggle whether it links its + * selection to the active editor. * * @since 3.0 */ public abstract class AbstractToggleLinkingAction extends Action { - + /** * Constructs a new action. */ public AbstractToggleLinkingAction() { super(ActionMessages.getString("ToggleLinkingAction.label")); //$NON-NLS-1$ - setDescription(ActionMessages.getString("ToggleLinkingAction.description")); //$NON-NLS-1$ + setDescription(ActionMessages + .getString("ToggleLinkingAction.description")); //$NON-NLS-1$ setToolTipText(ActionMessages.getString("ToggleLinkingAction.tooltip")); //$NON-NLS-1$ - PHPUiImages.setLocalImageDescriptors(this, "synced.gif"); //$NON-NLS-1$ - WorkbenchHelp.setHelp(this, IJavaHelpContextIds.LINK_EDITOR_ACTION); + PHPUiImages.setLocalImageDescriptors(this, "synced.gif"); //$NON-NLS-1$ + PlatformUI.getWorkbench().getHelpSystem().setHelp(this, + IJavaHelpContextIds.LINK_EDITOR_ACTION); } /**