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;
14 public class GotoMatchingBracketAction extends Action {
16 public final static String GOTO_MATCHING_BRACKET = "GotoMatchingBracket"; //$NON-NLS-1$
18 private final PHPEditor fEditor;
20 public GotoMatchingBracketAction(PHPEditor editor) {
21 super(PHPEditorMessages.getString("GotoMatchingBracket.label"));
22 Assert.isNotNull(editor);
24 setEnabled(null != fEditor);
28 fEditor.gotoMatchingBracket();