1 package net.sourceforge.phpdt.ui.actions;
4 * (c) Copyright IBM Corp. 2000, 2001.
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;
14 import org.eclipse.jface.action.Action;
16 public class GotoMatchingBracketAction extends Action {
18 public final static String GOTO_MATCHING_BRACKET = "GotoMatchingBracket"; //$NON-NLS-1$
20 private final PHPEditor fEditor;
22 public GotoMatchingBracketAction(PHPEditor editor) {
23 super(PHPEditorMessages.getString("GotoMatchingBracket.label"));
24 Assert.isNotNull(editor);
26 setEnabled(null != fEditor);
30 fEditor.gotoMatchingBracket();