1) Moved net.sourceforge.phpeclipse.ui\src\net\sourceforge\phpdt back to net.sourcefo...
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / ui / actions / GotoMatchingBracketAction.java
diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ui/actions/GotoMatchingBracketAction.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ui/actions/GotoMatchingBracketAction.java
new file mode 100644 (file)
index 0000000..827df31
--- /dev/null
@@ -0,0 +1,33 @@
+package net.sourceforge.phpdt.ui.actions;
+
+/*
+ * (c) Copyright IBM Corp. 2000, 2001.
+ * All Rights Reserved.
+ */
+
+//incastrix
+//import net.sourceforge.phpdt.internal.corext.Assert;
+import org.eclipse.core.runtime.Assert;
+import net.sourceforge.phpeclipse.phpeditor.PHPEditor;
+import net.sourceforge.phpeclipse.phpeditor.PHPEditorMessages;
+
+import org.eclipse.jface.action.Action;
+
+public class GotoMatchingBracketAction extends Action {
+
+       public final static String GOTO_MATCHING_BRACKET = "GotoMatchingBracket"; //$NON-NLS-1$
+
+       private final PHPEditor fEditor;
+
+       public GotoMatchingBracketAction(PHPEditor editor) {
+               super(PHPEditorMessages.getString("GotoMatchingBracket.label"));
+               Assert.isNotNull(editor);
+               fEditor = editor;
+               setEnabled(null != fEditor);
+       }
+
+       public void run() {
+               fEditor.gotoMatchingBracket();
+       }
+
+}
\ No newline at end of file