1) Added missing strings for italic, underline and strike through.
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / ui / actions / GotoMatchingBracketAction.java
1 package net.sourceforge.phpdt.ui.actions;
2
3 /*
4  * (c) Copyright IBM Corp. 2000, 2001.
5  * All Rights Reserved.
6  */
7
8 //incastrix
9 //import net.sourceforge.phpdt.internal.corext.Assert;
10 import org.eclipse.core.runtime.Assert;
11 import net.sourceforge.phpeclipse.phpeditor.PHPEditor;
12 import net.sourceforge.phpeclipse.phpeditor.PHPEditorMessages;
13
14 import org.eclipse.jface.action.Action;
15
16 public class GotoMatchingBracketAction extends Action {
17
18         public final static String GOTO_MATCHING_BRACKET = "GotoMatchingBracket"; //$NON-NLS-1$
19
20         private final PHPEditor fEditor;
21
22         public GotoMatchingBracketAction(PHPEditor editor) {
23                 super(PHPEditorMessages.getString("GotoMatchingBracket.label"));
24                 Assert.isNotNull(editor);
25                 fEditor = editor;
26                 setEnabled(null != fEditor);
27         }
28
29         public void run() {
30                 fEditor.gotoMatchingBracket();
31         }
32
33 }