1 package net.sourceforge.phpdt.ui.actions;
4 * (c) Copyright IBM Corp. 2000, 2001.
8 import net.sourceforge.phpdt.internal.corext.Assert;
9 import net.sourceforge.phpeclipse.phpeditor.PHPEditor;
10 import net.sourceforge.phpeclipse.phpeditor.PHPEditorMessages;
12 import org.eclipse.jface.action.Action;
15 public class GotoMatchingBracketAction extends Action {
17 public final static String GOTO_MATCHING_BRACKET= "GotoMatchingBracket"; //$NON-NLS-1$
19 private final PHPEditor fEditor;
21 public GotoMatchingBracketAction(PHPEditor editor) {
22 super(PHPEditorMessages.getString("GotoMatchingBracket.label"));
23 Assert.isNotNull(editor);
25 setEnabled(null != fEditor);
29 fEditor.gotoMatchingBracket();