Added mapped path field
[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 import net.sourceforge.phpdt.internal.corext.Assert;
9 import net.sourceforge.phpeclipse.phpeditor.PHPEditor;
10 import net.sourceforge.phpeclipse.phpeditor.PHPEditorMessages;
11
12 import org.eclipse.jface.action.Action;
13
14
15 public class GotoMatchingBracketAction extends Action {
16
17         public final static String GOTO_MATCHING_BRACKET= "GotoMatchingBracket"; //$NON-NLS-1$
18         
19         private final PHPEditor fEditor;
20         
21         public GotoMatchingBracketAction(PHPEditor editor) {
22                 super(PHPEditorMessages.getString("GotoMatchingBracket.label"));
23                 Assert.isNotNull(editor);
24                 fEditor= editor;
25                 setEnabled(null != fEditor);
26         }
27         
28         public void run() {
29                 fEditor.gotoMatchingBracket();
30         }
31         
32 }