Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'archive/org.eclipse.qvt.declarative.editor.imp.runtime/src/org/eclipse/imp/editor/GotoMatchingFenceAction.java')
-rw-r--r--archive/org.eclipse.qvt.declarative.editor.imp.runtime/src/org/eclipse/imp/editor/GotoMatchingFenceAction.java32
1 files changed, 32 insertions, 0 deletions
diff --git a/archive/org.eclipse.qvt.declarative.editor.imp.runtime/src/org/eclipse/imp/editor/GotoMatchingFenceAction.java b/archive/org.eclipse.qvt.declarative.editor.imp.runtime/src/org/eclipse/imp/editor/GotoMatchingFenceAction.java
new file mode 100644
index 000000000..335835a92
--- /dev/null
+++ b/archive/org.eclipse.qvt.declarative.editor.imp.runtime/src/org/eclipse/imp/editor/GotoMatchingFenceAction.java
@@ -0,0 +1,32 @@
+/*******************************************************************************
+* Copyright (c) 2008 IBM Corporation.
+* All rights reserved. This program and the accompanying materials
+* are made available under the terms of the Eclipse Public License v1.0
+* which accompanies this distribution, and is available at
+* http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+* Robert Fuhrer (rfuhrer@watson.ibm.com) - initial API and implementation
+
+*******************************************************************************/
+
+package org.eclipse.imp.editor;
+
+import org.eclipse.core.runtime.Assert;
+import org.eclipse.jface.action.Action;
+
+public class GotoMatchingFenceAction extends Action {
+ private final UniversalEditor fEditor;
+
+ public GotoMatchingFenceAction(UniversalEditor editor) {
+ super("Go to Matching Fence");
+ Assert.isNotNull(editor);
+ fEditor= editor;
+ setEnabled(true);
+// PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.GOTO_MATCHING_BRACKET_ACTION);
+ }
+
+ public void run() {
+ fEditor.gotoMatchingFence();
+ }
+}

Back to the top