this is a test commit to check the integration of cia.navi.cx
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / ui / actions / AbstractToggleLinkingAction.java
1 /*******************************************************************************
2  * Copyright (c) 2000, 2004 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Common Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-v10.html
7  *
8  * Contributors:
9  *     IBM Corporation - initial API and implementation
10  *******************************************************************************/
11 package net.sourceforge.phpdt.internal.ui.actions;
12
13 import net.sourceforge.phpdt.internal.ui.IJavaHelpContextIds;
14 import net.sourceforge.phpdt.internal.ui.PHPUiImages;
15
16 import org.eclipse.jface.action.Action;
17 import org.eclipse.ui.PlatformUI;
18
19
20 /**
21  * This is an action template for actions that toggle whether
22  * it links its selection to the active editor.
23  *
24  * @since 3.0
25  */
26 public abstract class AbstractToggleLinkingAction extends Action {
27
28         /**
29          * Constructs a new action.
30          */
31         public AbstractToggleLinkingAction() {
32                 super(ActionMessages.getString("ToggleLinkingAction.label")); //$NON-NLS-1$
33                 setDescription(ActionMessages.getString("ToggleLinkingAction.description")); //$NON-NLS-1$
34                 setToolTipText(ActionMessages.getString("ToggleLinkingAction.tooltip")); //$NON-NLS-1$
35                 PHPUiImages.setLocalImageDescriptors(this, "synced.gif"); //$NON-NLS-1$
36                 PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.LINK_EDITOR_ACTION);
37         }
38
39         /**
40          * Runs the action.
41          */
42         public abstract void run();
43 }